fix whitespace handling error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-10-01 08:44:17 +00:00
parent 086003eb7d
commit 09f146a0b6

View file

@ -449,7 +449,7 @@ static BOOL commandIsRepeat (NSString *string)
if (words == nil || [words count] == 0)
{
cmd = @"";
return;
}
else
{
@ -599,7 +599,11 @@ static BOOL commandIsRepeat (NSString *string)
wordsEnum = [[_line componentsSeparatedByString: @" "] objectEnumerator];
while ((word = [wordsEnum nextObject]) != nil)
{
[words addObject: [word stringByTrimmingSpaces]];
word = [word stringByTrimmingSpaces];
if ([word length] > 0)
{
[words addObject: word];
}
}
/* invoke server */