Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git] / lunaix-os / libs / klibc / string / trim.c
index c15e159a94b9c6809c4d58926f990a03417a02d6..abd6508801907179c0f18eaaf7e4a8d6e5f73bcf 100644 (file)
@@ -27,7 +27,7 @@ strltrim_safe(char* str)
         l++;
     }
 
-    if (!l)
-        return str;
-    return strcpy(str, str + l);
+    if (l)
+        strcpy(str, str + l);
+    return str;
 }
\ No newline at end of file