diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2011-08-23 12:42:32 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2011-08-23 12:42:32 +0200 |
commit | ca6fbe92205fe5b4acf2e92e4c2bf73327b26780 (patch) | |
tree | 66c5efc4f198156bfe182fd00a431ab1508bc602 /modules/pam_env/pam_env.c | |
parent | 01e04364faedc820de207bd3c8ecd0becf0e9fa3 (diff) | |
download | pam-ca6fbe92205fe5b4acf2e92e4c2bf73327b26780.tar.gz pam-ca6fbe92205fe5b4acf2e92e4c2bf73327b26780.tar.bz2 pam-ca6fbe92205fe5b4acf2e92e4c2bf73327b26780.zip |
Fix missing dereference.
Diffstat (limited to 'modules/pam_env/pam_env.c')
-rw-r--r-- | modules/pam_env/pam_env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pam_env/pam_env.c b/modules/pam_env/pam_env.c index 865fbafe..1ec01ca5 100644 --- a/modules/pam_env/pam_env.c +++ b/modules/pam_env/pam_env.c @@ -99,7 +99,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv, if (!strcmp(*argv,"debug")) ctrl |= PAM_DEBUG_ARG; else if (!strncmp(*argv,"conffile=",9)) { - if (*argv+9 == '\0') { + if ((*argv)[9] == '\0') { pam_syslog(pamh, LOG_ERR, "conffile= specification missing argument - ignored"); } else { @@ -107,7 +107,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv, D(("new Configuration File: %s", *conffile)); } } else if (!strncmp(*argv,"envfile=",8)) { - if (*argv+8 == '\0') { + if ((*argv)[8] == '\0') { pam_syslog (pamh, LOG_ERR, "envfile= specification missing argument - ignored"); } else { @@ -115,7 +115,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv, D(("new Env File: %s", *envfile)); } } else if (!strncmp(*argv,"user_envfile=",13)) { - if (*argv+13 == '\0') { + if ((*argv)[13] == '\0') { pam_syslog (pamh, LOG_ERR, "user_envfile= specification missing argument - ignored"); } else { |