From 77c1b2a3696193cf1f5dc4b1d5b0a3119735720d Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 23 Apr 2009 11:17:22 +0000 Subject: [PATCH] * src/newgrp.c: Added assertion to guide splint (and me). --- ChangeLog | 4 ++++ src/newgrp.c | 2 ++ 2 files changed, 6 insertions(+) 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);