summaryrefslogtreecommitdiffstats
path: root/chpass/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'chpass/util.c')
-rw-r--r--chpass/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chpass/util.c b/chpass/util.c
index e7dd06b..2bfde62 100644
--- a/chpass/util.c
+++ b/chpass/util.c
@@ -113,7 +113,7 @@ atot(p, store)
if (!(t = strtok((char *)NULL, " \t,")) || !isdigit(*t))
goto bad;
year = atoi(t);
- if (day < 1 || day > 31 || month < 1 || month > 12 || !year)
+ if (day < 1 || day > 31 || month < 1 || month > 12)
goto bad;
/* Allow two digit years 1969-2068 */
if (year < 69)