X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=selector.c;h=edff2beafe0f7472bccffbc857e55f5c59e52b09;hp=803d3c978bd222ad6223b83b9360726005895cc5;hb=c06d16d13ad754eae97cb38dd45f684e0d8f1c07;hpb=285851f00df3657d63944776a43054ef68420723 diff --git a/selector.c b/selector.c index 803d3c9..edff2be 100644 --- a/selector.c +++ b/selector.c @@ -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 *));