diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c index 1ab3973e7..cfca851cf 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -443,8 +443,7 @@ int ps_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
443 | USE_SELINUX(opt =) getopt32(argv, "Zo:aAdefl", &opt_o); | 443 | USE_SELINUX(opt =) getopt32(argv, "Zo:aAdefl", &opt_o); |
444 | if (opt_o) { | 444 | if (opt_o) { |
445 | do { | 445 | do { |
446 | parse_o(opt_o->data); | 446 | parse_o(llist_pop(&opt_o)); |
447 | opt_o = opt_o->link; | ||
448 | } while (opt_o); | 447 | } while (opt_o); |
449 | } else { | 448 | } else { |
450 | /* Below: parse_o() needs char*, NOT const char*... */ | 449 | /* Below: parse_o() needs char*, NOT const char*... */ |