From 0b3e1277b4e3cc3bb2575162ec238cac00b15a18 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 11 Mar 1997 11:52:33 +0000 Subject: Merge from Lite2: filesystem include updates, duplicate group suppression, cleanups, filesystem whiteout support (unionfs), bidir popen(). --- lib/libc/gen/getnetgrent.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc/gen/getnetgrent.c') diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 46cc764..662958a 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)getnetgrent.c 8.1 (Berkeley) 6/4/93"; +static char sccsid[] = "@(#)getnetgrent.c 8.2 (Berkeley) 4/27/95"; #endif /* LIBC_SCCS and not lint */ #include @@ -483,10 +483,10 @@ parse_netgrp(group) if (parse_netgrp(spos)) continue; } - /* Watch for null pointer dereferences, dammit! */ - if (pos != NULL) - while (*pos == ' ' || *pos == ',' || *pos == '\t') - pos++; + if (pos == NULL) + break; + while (*pos == ' ' || *pos == ',' || *pos == '\t') + pos++; } return (0); } -- cgit v1.1