From c68aa9d5cca56e28ca8ad54851407b466434ad20 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 18:10:05 +0200 Subject: [PATCH] Revert "explicit middle parameter definition" This reverts commit 0ef605d864fbaaa0930d18df6343abae9856a7f7. --- src/graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graph.c b/src/graph.c index 25ff22a9..46f4bc98 100644 --- a/src/graph.c +++ b/src/graph.c @@ -249,9 +249,9 @@ static void check_reachability(void) { char *port; char *envp[8] = {NULL}; - xasprintf(&envp[0], "NETNAME=%s", netname ? netname : ""); - xasprintf(&envp[1], "DEVICE=%s", device ? device : ""); - xasprintf(&envp[2], "INTERFACE=%s", iface ? iface : ""); + xasprintf(&envp[0], "NETNAME=%s", netname ? : ""); + xasprintf(&envp[1], "DEVICE=%s", device ? : ""); + xasprintf(&envp[2], "INTERFACE=%s", iface ? : ""); xasprintf(&envp[3], "NODE=%s", n->name); sockaddr2str(&n->address, &address, &port); xasprintf(&envp[4], "REMOTEADDRESS=%s", address);