diff options
-rw-r--r-- | libpwdgrp/pwd_grp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 01058d3a1..2392e7d22 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -223,7 +223,7 @@ static char *parse_common(FILE *fp, const char *filename, | |||
223 | * for 3 pointers: alignment padding, group name, NULL. | 223 | * for 3 pointers: alignment padding, group name, NULL. |
224 | * +1 for every additional group. | 224 | * +1 for every additional group. |
225 | */ | 225 | */ |
226 | if (n_fields == sizeof(GR_DEF)-1) { /* if we read group file... */ | 226 | if (buf && n_fields == sizeof(GR_DEF)-1) { /* if we read group file... */ |
227 | int cnt = 3; | 227 | int cnt = 3; |
228 | char *p = buf; | 228 | char *p = buf; |
229 | while (p < S.tokenize_end) | 229 | while (p < S.tokenize_end) |