aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil/gr_util.c
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
commit0dd84a53d751ed46359f2e95b7b1fccc10479984 (patch)
tree798a8cac20f7201278e898313bcc68361dbbb764 /lib/libutil/gr_util.c
parentf52384d1cf7b79ffec401e1bcd296a2da523b0b6 (diff)
downloadsrc-0dd84a53d751ed46359f2e95b7b1fccc10479984.tar.gz
src-0dd84a53d751ed46359f2e95b7b1fccc10479984.zip
Remove a dead store.
MFC after: 5 days
Notes
Notes: svn path=/head/; revision=200423
Diffstat (limited to 'lib/libutil/gr_util.c')
-rw-r--r--lib/libutil/gr_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c
index 77e06531f705..633f435eea29 100644
--- a/lib/libutil/gr_util.c
+++ b/lib/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]);