From 04a36b3ae44f3092c0fac8cf92745c3b8e4a0674 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 7 Apr 2015 02:45:21 -0500 Subject: [PATCH] wmload: Check if Execute string is empty by testing first character. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes "the address of ‘Execute’ will always evaluate as ‘true’ [-Waddress]" warning. --- wmload/wmload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmload/wmload.c b/wmload/wmload.c index f08b9aa..9ea6c9b 100644 --- a/wmload/wmload.c +++ b/wmload/wmload.c @@ -117,7 +117,7 @@ void ExecuteExternal() #ifdef DEBUG printf("asload: system(%s)\n",Execute); #endif - if( ! Execute ) { + if( Execute[0] == '\0' ) { return; } ruid = getuid();