Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Sat, 17 Jul 2010 19:59:04 +0000 (21:59 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sat, 17 Jul 2010 19:59:04 +0000 (21:59 +0200)
selector.c

index 803d3c9..edff2be 100644 (file)
@@ -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 *));