Skip to content

Commit c87cb73

Browse files
committed
Don't return after exit()
Code is not reachable, this just confuses the reader. Signed-off-by: Nir Soffer <[email protected]>
1 parent 8d9ccd9 commit c87cb73

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cli.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,10 @@ struct cli_options *cli_options_parse(int argc, char *argv[]) {
144144
case 'h':
145145
print_usage(argv[0]);
146146
exit(EXIT_SUCCESS);
147-
return NULL;
148147
break;
149148
case 'v':
150149
print_version();
151150
exit(EXIT_SUCCESS);
152-
return NULL;
153151
break;
154152
default:
155153
goto error;

0 commit comments

Comments
 (0)