diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-29 00:08:32 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-29 00:08:32 +0000 |
| commit | a05d621a3b9a8e41b02c61a781b9d6390d6d30ec (patch) | |
| tree | 316e945fb4c41a42f8e6dd13710f7ae0cd112359 | |
| parent | 43df04c2007248c1825c092ee03363be924d69d4 (diff) | |
| download | pw-darwin-a05d621a3b9a8e41b02c61a781b9d6390d6d30ec.tar.gz pw-darwin-a05d621a3b9a8e41b02c61a781b9d6390d6d30ec.zip | |
Simplify code for parsing extra groups
| -rw-r--r-- | pw/pw_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c index e9606b4..d30c80e 100644 --- a/pw/pw_conf.c +++ b/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)); |
