projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add warnings for bad combinations of Device and Interface.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
a2b3580
..
ed0cee9
100644
(file)
--- 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 */