]> diplodocus.org Git - nmh/commitdiff
Replace strlen(foo) > 0 with *foo.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 15:09:55 +0000 (15:09 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 15:17:29 +0000 (15:17 +0000)
uip/post.c

index fca85f7b5e92c72553a8f59b7fa04e8b2cf885f3..bf1c042db6276a058440936459f41e4138071c33 100644 (file)
@@ -1041,7 +1041,7 @@ putfmt (char *name, char *str, int *eai, FILE *out)
         * Strip off any trailing newlines
         */
 
-       while (strlen(fullfrom) > 0 && fullfrom[strlen(fullfrom) - 1] == '\n') {
+       while (*fullfrom && fullfrom[strlen(fullfrom) - 1] == '\n') {
            fullfrom[strlen(fullfrom) - 1] = '\0';
        }
     }