X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=ed0cee9374253e756cca5fa301c19a98e6e0d1ed;hp=a2b358052f7f17c072399ebc35e17ab344dc17bd;hb=dc6c113176697aafb013feda87af973d80349585;hpb=72bd8dbb86edf54117c5c062cbb93f2bc1f8b729 diff --git a/src/tincd.c b/src/tincd.c index a2b35805..ed0cee93 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -239,7 +239,8 @@ static bool parse_options(int argc, char **argv) { usage(true); return false; } - netname = strcmp(optarg, ".") != 0 ? xstrdup(optarg) : NULL; + if(optarg && strcmp(optarg, ".")) + netname = xstrdup(optarg); break; case 'o': /* option */