* src/newgrp.c: Added assertion to guide splint (and me).

This commit is contained in:
nekral-guest 2009-04-23 11:17:22 +00:00
parent b0db85bc04
commit 77c1b2a369
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Added assertion to guide splint (and me).
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_gid.c: Use booleans instead of char fo

View File

@ -38,6 +38,7 @@
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <assert.h>
#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);