aboutsummaryrefslogtreecommitdiff
path: root/libbb/trim.c
diff options
context:
space:
mode:
authorGravatar Mark Whitley <markw@lineo.com>2001-04-23 17:56:27 +0000
committerGravatar Mark Whitley <markw@lineo.com>2001-04-23 17:56:27 +0000
commit4e9267d76c7dc47064bc80b1f8542453725158d7 (patch)
treeef1bed7c593ef86d38fe0909b1696db4b973ac28 /libbb/trim.c
parent4b66dabc76a89a10e4ff07318ff88e3501a4bba5 (diff)
downloadbusybox-4e9267d76c7dc47064bc80b1f8542453725158d7.tar.gz
busybox-4e9267d76c7dc47064bc80b1f8542453725158d7.tar.bz2
Reversed last patch; unnecessary.
Diffstat (limited to 'libbb/trim.c')
-rw-r--r--libbb/trim.c4
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)
{
int len = strlen(s);
- /* sanity check */
- if (len == 0)
- return;
-
/* trim trailing whitespace */
while ( len > 0 && isspace(s[len-1]))
s[--len]='\0';