X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.c;h=edff2beafe0f7472bccffbc857e55f5c59e52b09;hb=c06d16d13ad754eae97cb38dd45f684e0d8f1c07;hp=e2f8f79005541bae15d500773610dc44fb70dc5b;hpb=19a49d18e860c4cbddffc7055f7c3ce0a1948650;p=selector.git diff --git a/selector.c b/selector.c index e2f8f79..edff2be 100644 --- a/selector.c +++ b/selector.c @@ -45,7 +45,7 @@ #include #include -#define VERSION "1.1.1" +#define VERSION "1.1.2" #define BUFFER_SIZE 4096 @@ -980,14 +980,14 @@ int main(int argc, char **argv) { } } - if(show_help || error) { - if(error) { - usage(stderr); - exit(EXIT_FAILURE); - } else { - usage(stdout); - exit(EXIT_SUCCESS); - } + if(error) { + usage(stderr); + exit(EXIT_FAILURE); + } + + if(show_help) { + usage(stdout); + exit(EXIT_SUCCESS); } lines = safe_malloc(nb_lines_max * sizeof(char *));