summaryrefslogtreecommitdiffstats
path: root/lib/libutil/gr_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/gr_util.c')
-rw-r--r--lib/libutil/gr_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c
index 0173595..6d96d5e 100644
--- a/lib/libutil/gr_util.c
+++ b/lib/libutil/gr_util.c
@@ -63,6 +63,7 @@ static const char group_line_format[] = "%s:%s:%ju:";
int
gr_init(const char *dir, const char *group)
{
+
if (dir == NULL) {
strcpy(group_dir, _PATH_ETC);
} else {
@@ -88,6 +89,7 @@ gr_init(const char *dir, const char *group)
}
strcpy(group_file, group);
}
+
initialized = 1;
return (0);
}
OpenPOWER on IntegriCloud