aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/string.c b/lib/string.c
index 3a912a4e9a63..765566a6a088 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -364,8 +364,8 @@ char *strstrip(char *s)
364 size_t size; 364 size_t size;
365 char *end; 365 char *end;
366 366
367 s = skip_spaces(s);
367 size = strlen(s); 368 size = strlen(s);
368
369 if (!size) 369 if (!size)
370 return s; 370 return s;
371 371
@@ -374,7 +374,7 @@ char *strstrip(char *s)
374 end--; 374 end--;
375 *(end + 1) = '\0'; 375 *(end + 1) = '\0';
376 376
377 return skip_spaces(s); 377 return s;
378} 378}
379EXPORT_SYMBOL(strstrip); 379EXPORT_SYMBOL(strstrip);
380 380