diff options
Diffstat (limited to 'coreutils/sort.c')
-rw-r--r-- | coreutils/sort.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c index fb58f6279..3354385a4 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -74,9 +74,7 @@ static char *get_key(char *str, struct sort_key *key, int flags) | |||
74 | for(i=1;i<key->range[2*j]+j;i++) { | 74 | for(i=1;i<key->range[2*j]+j;i++) { |
75 | /* Skip leading blanks or first separator */ | 75 | /* Skip leading blanks or first separator */ |
76 | if(str[end]) { | 76 | if(str[end]) { |
77 | if(key_separator) { | 77 | if(!key_separator && isspace(str[end])) |
78 | if(str[end]==key_separator) end++; | ||
79 | } else if(isspace(str[end])) | ||
80 | while(isspace(str[end])) end++; | 78 | while(isspace(str[end])) end++; |
81 | } | 79 | } |
82 | /* Skip body of key */ | 80 | /* Skip body of key */ |