projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b66dab
)
Reversed last patch; unnecessary.
author
Mark Whitley
<markw@lineo.com>
Mon, 23 Apr 2001 17:56:27 +0000
(17:56 -0000)
committer
Mark Whitley
<markw@lineo.com>
Mon, 23 Apr 2001 17:56:27 +0000
(17:56 -0000)
libbb/trim.c
patch
|
blob
|
history
diff --git
a/libbb/trim.c
b/libbb/trim.c
index
d3be62d
..
76b87ca
100644
(file)
--- 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';