]> git.marmaro.de Git - mmh/blobdiff - sbr/ruserpass.c
Explicit checks for return values of strcmp().
[mmh] / sbr / ruserpass.c
index f88fcef5c125d762558fe0b0f9cdc74d0ed64f7c..0e169a5b15677d7417b1a6451a446e0d81bfccbd 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);
 }