diff options
Diffstat (limited to 'usr.bin/tcfs/tcfsrmgroup.c')
-rw-r--r-- | usr.bin/tcfs/tcfsrmgroup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tcfs/tcfsrmgroup.c b/usr.bin/tcfs/tcfsrmgroup.c index 03ad2b0c213..d64bd06223d 100644 --- a/usr.bin/tcfs/tcfsrmgroup.c +++ b/usr.bin/tcfs/tcfsrmgroup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsrmgroup.c,v 1.8 2000/06/20 06:45:16 fgsch Exp $ */ +/* $OpenBSD: tcfsrmgroup.c,v 1.9 2000/06/20 08:59:53 fgsch Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -31,7 +31,7 @@ int rmgroup_main(int argn, char *argv[]) { int val; - gid_t gid; + gid_t gid = 0; int have_gid = FALSE, be_verbose = FALSE; /* @@ -71,7 +71,7 @@ rmgroup_main(int argn, char *argv[]) char *buff = NULL; int len; - buff = (char *)calloc(2048, sizeof(char)); + buff = (char *)malloc(2048); if (!buff) tcfs_error(ER_MEM, NULL); @@ -98,4 +98,6 @@ rmgroup_main(int argn, char *argv[]) if (!tcfs_rmgroup(gid)) tcfs_error(ER_CUSTOM, "Wrong ID or an error as occurred.\n"); + + exit(0); } |