diff options
author | bapt <bapt@FreeBSD.org> | 2015-12-29 00:08:32 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-12-29 00:08:32 +0000 |
commit | ebf326060e2872b3330fda6ebc1a1a0ef74b5876 (patch) | |
tree | 3835e28dedde9841ecc7fb0dba7600b43262dd9c /usr.sbin | |
parent | 87d5fd23fe6e45640813b50835c6dea06cc46906 (diff) | |
download | FreeBSD-src-ebf326060e2872b3330fda6ebc1a1a0ef74b5876.zip FreeBSD-src-ebf326060e2872b3330fda6ebc1a1a0ef74b5876.tar.gz |
Simplify code for parsing extra groups
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pw/pw_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_conf.c b/usr.sbin/pw/pw_conf.c index e9606b4..d30c80e 100644 --- a/usr.sbin/pw/pw_conf.c +++ b/usr.sbin/pw/pw_conf.c @@ -313,7 +313,7 @@ read_userconfig(char const * file) ? NULL : newstr(q); break; case _UC_EXTRAGROUPS: - for (i = 0; q != NULL; q = strtok(NULL, toks)) { + while ((q = strtok(NULL, toks)) != NULL) { if (config.groups == NULL) config.groups = sl_init(); sl_add(config.groups, newstr(q)); |