summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2009-12-12 00:11:40 +0000
committerSean Farley <scf@FreeBSD.org>2009-12-12 00:11:40 +0000
commit4586c2d56d0b6146515e3dde667ec7ae98aaede2 (patch)
tree16da8e624080be2ae5c9209857602941f95eb62c /libutil
parent36a4535e90917bf64db4739b36dacafd20bd6386 (diff)
downloadpw-darwin-4586c2d56d0b6146515e3dde667ec7ae98aaede2.tar.gz
pw-darwin-4586c2d56d0b6146515e3dde667ec7ae98aaede2.tar.zst
pw-darwin-4586c2d56d0b6146515e3dde667ec7ae98aaede2.zip
Remove a dead store.
MFC after: 5 days
Diffstat (limited to 'libutil')
-rw-r--r--libutil/gr_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c
index 77e0653..633f435 100644
--- a/libutil/gr_util.c
+++ b/libutil/gr_util.c
@@ -117,8 +117,8 @@ gr_make(const struct group *gr)
/* Create the group line and fill it. */
if ((line = malloc(line_size)) == NULL)
return (NULL);
- line_size = snprintf(line, line_size, group_line_format, gr->gr_name,
- gr->gr_passwd, (uintmax_t)gr->gr_gid);
+ snprintf(line, line_size, group_line_format, gr->gr_name, gr->gr_passwd,
+ (uintmax_t)gr->gr_gid);
if (gr->gr_mem != NULL)
for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) {
strcat(line, gr->gr_mem[ndx]);