From: nekral-guest Date: Thu, 23 Apr 2009 11:17:22 +0000 (+0000) Subject: * src/newgrp.c: Added assertion to guide splint (and me). X-Git-Tag: 4.1.4~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77c1b2a3696193cf1f5dc4b1d5b0a3119735720d;p=shadow * src/newgrp.c: Added assertion to guide splint (and me). --- diff --git a/ChangeLog b/ChangeLog index 4ef86286..a383a4fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-22 Nicolas François + + * src/newgrp.c: Added assertion to guide splint (and me). + 2009-04-22 Nicolas François * libmisc/find_new_gid.c: Use booleans instead of char fo diff --git a/src/newgrp.c b/src/newgrp.c index ab0621fe..71b704b7 100644 --- a/src/newgrp.c +++ b/src/newgrp.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "defines.h" #include "getdef.h" #include "prototypes.h" @@ -619,6 +620,7 @@ int main (int argc, char **argv) * Re-read the group entry for further processing. */ grp = xgetgrnam (group); + assert (NULL != grp); } #ifdef SHADOWGRP sgrp = getsgnam (group);