]> andersk Git - moira.git/commitdiff
don't overwrite existing '\0' with '\0' in strtrim. (lets us strtrim
authordanw <danw>
Wed, 10 Sep 1997 03:37:45 +0000 (03:37 +0000)
committerdanw <danw>
Wed, 10 Sep 1997 03:37:45 +0000 (03:37 +0000)
constant strings, which lets us compile w/ gcc w/o -traditional)

lib/strs.c

index 055e19a52d6e70abb35cfffca1155f38f5e4110e..8845663b143ed18dfd8218e923ced18a921dbe3d 100644 (file)
@@ -68,7 +68,7 @@ char *strtrim(save)
            break;
        }
     }
-    *t = '\0';
+    if (*t) *t = '\0';
     return s;
 }
 
This page took 0.039404 seconds and 5 git commands to generate.