Skip to content
Snippets Groups Projects
Commit 989f4f65 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

main: null optarg check

parent f6e4e43b
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,9 @@ int main(int argc, char **argv)
{
case 'c':
free(config_fn);
config_fn = strdup(optarg);
if (optarg) {
config_fn = strdup(optarg);
}
break;
case 'd':
daemonize = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment