Browse Source

cli: do not return 0 if the command was invalid

Felix Fietkau 13 years ago
parent
commit
14bdf86899
1 changed files with 2 additions and 3 deletions
  1. 2 3
      cli.c

+ 2 - 3
cli.c

@@ -687,10 +687,9 @@ int main(int argc, char **argv)
 	ret = uci_cmd(argc - 1, argv + 1);
 	if (input != stdin)
 		fclose(input);
-	if (ret == 255) {
+
+	if (ret == 255)
 		uci_usage();
-		return 0;
-	}
 
 	uci_free_context(ctx);