diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-23 17:56:27 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-23 17:56:27 +0000 |
commit | 9ef67d9ca4a31f46dac4406e0925c77c3c21a017 (patch) | |
tree | ef1bed7c593ef86d38fe0909b1696db4b973ac28 | |
parent | 79668692a8641461e58543da9ce704411e74dff5 (diff) | |
download | busybox-w32-9ef67d9ca4a31f46dac4406e0925c77c3c21a017.tar.gz busybox-w32-9ef67d9ca4a31f46dac4406e0925c77c3c21a017.tar.bz2 busybox-w32-9ef67d9ca4a31f46dac4406e0925c77c3c21a017.zip |
Reversed last patch; unnecessary.
git-svn-id: svn://busybox.net/trunk/busybox@2406 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | libbb/trim.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libbb/trim.c b/libbb/trim.c index d3be62d93..76b87ca1c 100644 --- a/libbb/trim.c +++ b/libbb/trim.c | |||
@@ -35,10 +35,6 @@ void trim(char *s) | |||
35 | { | 35 | { |
36 | int len = strlen(s); | 36 | int len = strlen(s); |
37 | 37 | ||
38 | /* sanity check */ | ||
39 | if (len == 0) | ||
40 | return; | ||
41 | |||
42 | /* trim trailing whitespace */ | 38 | /* trim trailing whitespace */ |
43 | while ( len > 0 && isspace(s[len-1])) | 39 | while ( len > 0 && isspace(s[len-1])) |
44 | s[--len]='\0'; | 40 | s[--len]='\0'; |