Explicit checks for return values of strcmp().
[mmh] / sbr / ruserpass.c
index f88fcef..0e169a5 100644 (file)
@@ -211,7 +211,7 @@ token(void)
        if (tokval[0] == 0)
                return (0);
        for (t = toktabs; t->tokstr; t++)
-               if (!strcmp(t->tokstr, tokval))
+               if (strcmp(t->tokstr, tokval)==0)
                        return (t->tval);
        return (ID);
 }