diff options
Diffstat (limited to 'modules/pam_pwhistory/pwhistory_helper.c')
-rw-r--r-- | modules/pam_pwhistory/pwhistory_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_pwhistory/pwhistory_helper.c b/modules/pam_pwhistory/pwhistory_helper.c index 469d95fa..fb9a1e31 100644 --- a/modules/pam_pwhistory/pwhistory_helper.c +++ b/modules/pam_pwhistory/pwhistory_helper.c @@ -108,7 +108,7 @@ main(int argc, char *argv[]) option = argv[1]; user = argv[2]; - filename = argv[3]; + filename = (argv[3][0] != '\0') ? argv[3] : NULL; if (strcmp(option, "check") == 0 && argc == 5) return check_history(user, filename, argv[4]); |