]> diplodocus.org Git - nmh/blobdiff - sbr/strindex.c
Invert ternary condition to remove one negative.
[nmh] / sbr / strindex.c
index ad1d18feb70c4c0ce0fe5b46ca0d19b25992ba1f..b2bc9ff9f83ff1f0a9cc923754a454adeda2412f 100644 (file)
@@ -17,7 +17,7 @@ stringdex (char *p1, char *p2)
 
     for (p = p2; *p; p++)
        if (uprf (p, p1))
-           return (p - p2);
+           return p - p2;
 
     return -1;
 }