]> git.tuebingen.mpg.de Git - adu.git/commitdiff
parse_select_options(): Check directly for NULL strings.
authorAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 21:57:15 +0000 (22:57 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 21:57:15 +0000 (22:57 +0100)
This is equivalent to checking whether a select option was given
in select mode, but it makes a difference in interactive mode.

select.c

index c36036645428344b702d9b2e3617049b8b168fb7..9a19825ba0caf0bda41608242455b78a8fc3e564 100644 (file)
--- a/select.c
+++ b/select.c
@@ -657,7 +657,7 @@ int parse_select_options(char *string, struct select_cmdline_parser_params *para
        char *fmt = NULL;
        struct atom *atoms;
 
-       if (conf.select_options_given) {
+       if (string) {
                int argc;
                char **argv;