summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/strutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/strutils.h b/include/strutils.h
index be1ba6737..5d07fcc7c 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -213,7 +213,7 @@ static inline size_t ltrim_whitespace(unsigned char *str)
len = strlen((char *) p);
- if (len && p > str)
+ if (p > str)
memmove(str, p, len + 1);
return len;