summaryrefslogtreecommitdiff
path: root/lib/nss_wrapper/testsuite.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nss_wrapper/testsuite.c')
-rw-r--r--lib/nss_wrapper/testsuite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nss_wrapper/testsuite.c b/lib/nss_wrapper/testsuite.c
index d6b4839318..da1a2675a2 100644
--- a/lib/nss_wrapper/testsuite.c
+++ b/lib/nss_wrapper/testsuite.c
@@ -175,7 +175,7 @@ static void print_group(struct group *grp)
grp->gr_passwd,
(unsigned long)grp->gr_gid);
- if (!grp->gr_mem[0]) {
+ if ((grp->gr_mem == NULL) || !grp->gr_mem[0]) {
printf("\n");
return;
}