From 1a2226340e085d6a4379341f3a0dfabcf82f6be5 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Mon, 25 Sep 2017 14:38:15 -0700 Subject: [PATCH] Fix compiler warning in check_update.c Fixes #263 The conditional checking for network connection always evaluated as true since the check_network() function was not being called. Add the parentheses to actually check for network. Signed-off-by: Matthew Johnson --- src/check_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_update.c b/src/check_update.c index 33f7220d..e8c5aaca 100644 --- a/src/check_update.c +++ b/src/check_update.c @@ -139,7 +139,7 @@ static int check_update() } swupd_curl_init(); - if (!check_network) { + if (!check_network()) { fprintf(stderr, "Error: Network issue, unable to proceed with update\n"); return ENOSWUPDSERVER; }