mirror of
https://github.com/sheumann/hush.git
synced 2024-08-19 13:28:57 +00:00
Reversed last patch; unnecessary.
This commit is contained in:
parent
4b66dabc76
commit
4e9267d76c
@ -35,10 +35,6 @@ void trim(char *s)
|
|||||||
{
|
{
|
||||||
int len = strlen(s);
|
int len = strlen(s);
|
||||||
|
|
||||||
/* sanity check */
|
|
||||||
if (len == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* trim trailing whitespace */
|
/* trim trailing whitespace */
|
||||||
while ( len > 0 && isspace(s[len-1]))
|
while ( len > 0 && isspace(s[len-1]))
|
||||||
s[--len]='\0';
|
s[--len]='\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user