summaryrefslogtreecommitdiff
path: root/shadow
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-02-22 01:07:27 +0000
committerUlrich Drepper <drepper@redhat.com>1997-02-22 01:07:27 +0000
commit655fe3107058017a6d4e618be03b91b119457354 (patch)
treece2ab74f39dec280e51e6cb3b34dcd231f85d47d /shadow
parent9652be3de8913e528f86d9d4d2643db6c472f9fe (diff)
update from main archive 970221
Diffstat (limited to 'shadow')
-rw-r--r--shadow/sgetspent_r.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/shadow/sgetspent_r.c b/shadow/sgetspent_r.c
index ba2e8186bc..8678ac816a 100644
--- a/shadow/sgetspent_r.c
+++ b/shadow/sgetspent_r.c
@@ -51,9 +51,12 @@ LINE_PARSER
else
{
STRING_FIELD (result->sp_pwdp, ISCOLON, 0);
- INT_FIELD (result->sp_lstchg, ISCOLON, 0, 10, (long int));
- INT_FIELD (result->sp_min, ISCOLON, 0, 10, (long int));
- INT_FIELD (result->sp_max, ISCOLON, 0, 10, (long int));
+ INT_FIELD_MAYBE_NULL (result->sp_lstchg, ISCOLON, 0, 10, (long int),
+ (long int) -1);
+ INT_FIELD_MAYBE_NULL (result->sp_min, ISCOLON, 0, 10, (long int),
+ (long int) -1);
+ INT_FIELD_MAYBE_NULL (result->sp_max, ISCOLON, 0, 10, (long int),
+ (long int -1);
while (isspace (*line))
++line;
if (*line == '\0')