From: Andre Noll Date: Sat, 1 Nov 2008 21:57:15 +0000 (+0100) Subject: parse_select_options(): Check directly for NULL strings. X-Git-Tag: v0.0.4~16 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=19636dc6a5aacc09b320b60941004cadde7c6cf8;p=adu.git parse_select_options(): Check directly for NULL strings. This is equivalent to checking whether a select option was given in select mode, but it makes a difference in interactive mode. --- diff --git a/select.c b/select.c index c360366..9a19825 100644 --- 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;