From 0ef605d864fbaaa0930d18df6343abae9856a7f7 Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 29 Jun 2015 14:06:46 +0200 Subject: [PATCH] explicit middle parameter definition error: use of GNU ?: conditional expression extension, omitting middle operand [-Werror,-Wgnu-conditional-omitted-operand] --- src/graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graph.c b/src/graph.c index 46f4bc98..25ff22a9 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 ? : ""); - xasprintf(&envp[1], "DEVICE=%s", device ? : ""); - xasprintf(&envp[2], "INTERFACE=%s", iface ? : ""); + xasprintf(&envp[0], "NETNAME=%s", netname ? netname : ""); + xasprintf(&envp[1], "DEVICE=%s", device ? device : ""); + xasprintf(&envp[2], "INTERFACE=%s", iface ? iface : ""); xasprintf(&envp[3], "NODE=%s", n->name); sockaddr2str(&n->address, &address, &port); xasprintf(&envp[4], "REMOTEADDRESS=%s", address);