]> andersk Git - moira.git/blobdiff - gen/util.c
fix problem with strtrim on empty strings
[moira.git] / gen / util.c
index d241de8da1e01a9de87bd9390a96e6f602303f7f..70be012f86c0d059d52b6b9bfe03eb558c140479 100644 (file)
@@ -115,5 +115,8 @@ register char *s;
          last = s;
        s++;
     }
-    *(++last) = '\0';
+    if (*last == ' ')
+      *last = '\0';
+    else
+      *(++last) = '\0';
 }
This page took 0.038258 seconds and 4 git commands to generate.