diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
| commit | 08324d276f48c53cc1af9cfe116a4c930bb77679 (patch) | |
| tree | 3c2aec6142a66931af5f1da71eae54920375189e /pw/pw_group.c | |
| parent | 08870ffbc9e2cee84244c234ad5b56ea9aa26fc1 (diff) | |
| parent | cbfb9c649bd7eecce96516a347e4bab7c5b2cb52 (diff) | |
| download | pw-darwin-08324d276f48c53cc1af9cfe116a4c930bb77679.tar.gz pw-darwin-08324d276f48c53cc1af9cfe116a4c930bb77679.zip | |
Sync with HEAD.
Diffstat (limited to 'pw/pw_group.c')
| -rw-r--r-- | pw/pw_group.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index f4f2116..3259412 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -274,8 +274,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) pw_log(cnf, mode, W_GROUP, "%s(%ld)", grp->gr_name, (long) grp->gr_gid); - if (members) - free(members); + free(members); return EXIT_SUCCESS; } @@ -408,7 +407,7 @@ print_group(struct group * grp, int pretty) char *buf = NULL; buf = gr_make(grp); - fputs(buf, stdout); + printf("%s\n", buf); free(buf); } else { int i; |
