fix logic error
This commit is contained in:
parent
fb86e3df22
commit
8f4c9e1ab7
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ main(int argc, char **argv)
|
|||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
case 'c':
|
||||
config_path = strdup(optarg); // gets freed in kiwmi_fini
|
||||
config_path = strdup(optarg); // gets freed in server_fini
|
||||
if (!config_path) {
|
||||
fprintf(stderr, "Failed to allocate memory\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Reference in a new issue