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 12b463a6d..1f531fb76 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -314,7 +314,7 @@ int sort_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
314 | 0 | 314 | 0 |
315 | }; | 315 | }; |
316 | struct sort_key *key = add_key(); | 316 | struct sort_key *key = add_key(); |
317 | char *str_k = lst_k->data; | 317 | char *str_k = llist_pop(&lst_k); |
318 | const char *temp2; | 318 | const char *temp2; |
319 | 319 | ||
320 | i = 0; /* i==0 before comma, 1 after (-k3,6) */ | 320 | i = 0; /* i==0 before comma, 1 after (-k3,6) */ |
@@ -344,8 +344,6 @@ int sort_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
344 | str_k++; | 344 | str_k++; |
345 | } | 345 | } |
346 | } | 346 | } |
347 | /* leaking lst_k... */ | ||
348 | lst_k = lst_k->link; | ||
349 | } | 347 | } |
350 | #endif | 348 | #endif |
351 | /* global b strips leading and trailing spaces */ | 349 | /* global b strips leading and trailing spaces */ |