diff options
Diffstat (limited to 'lib/string.c')
-rw-r--r-- | lib/string.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/string.c b/lib/string.c index 11df54325fb8..dc4a86341f91 100644 --- a/lib/string.c +++ b/lib/string.c @@ -360,7 +360,6 @@ char *strim(char *s) size_t size; char *end; - s = skip_spaces(s); size = strlen(s); if (!size) return s; @@ -370,7 +369,7 @@ char *strim(char *s) end--; *(end + 1) = '\0'; - return s; + return skip_spaces(s); } EXPORT_SYMBOL(strim); |