Merge pull request #45 from 6gk/master

fix logic error
This commit is contained in:
buffet 2021-10-06 20:29:10 +00:00 committed by GitHub
commit bae2566f4a

View file

@ -43,7 +43,7 @@ main(int argc, char **argv)
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
break; break;
case 'c': case 'c':
config_path = strdup(optarg); // gets freed in kiwmi_fini config_path = strdup(optarg); // gets freed in server_fini
if (!config_path) { if (!config_path) {
fprintf(stderr, "Failed to allocate memory\n"); fprintf(stderr, "Failed to allocate memory\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);