projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coalesce two if statements that check for the same thing.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
0033c00
..
23dd252
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-962,9
+962,8
@@
static bool setup_myself(void) {
else if(!strcasecmp(type, "vde"))
devops = vde_devops;
#endif
else if(!strcasecmp(type, "vde"))
devops = vde_devops;
#endif
- }
- if (type)
free(type);
free(type);
+ }
get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);
get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);