fix logic error

This commit is contained in:
gk 2021-10-07 06:26:47 +10:00
parent fb86e3df22
commit 8f4c9e1ab7

View file

@ -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);