mount: loop until no opt options

values can be specified as 0 to ignore them

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma 2014-04-05 11:56:04 +02:00 committed by sin
parent 3c47a9a9d6
commit ef1ab48699
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ parseopts(char *popts, unsigned long *flags, char *data, size_t datasiz)
data[0] = '\0';
for(name = strtok(popts, ","); name; name = strtok(NULL, ",")) {
validopt = 0;
for(i = 0; optnames[i].v; i++) {
for(i = 0; optnames[i].opt; i++) {
if(optnames[i].opt && strcmp(name, optnames[i].opt) == 0) {
*flags |= optnames[i].v;
validopt = 1;