[Pkg-wmaker-commits] [wmload] 21/58: wmload: Check if Execute string is empty by testing first character.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmload.

commit 22efb7f571b653ad6c2474a312bd91082f861e38
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue Apr 7 02:45:21 2015 -0500

    wmload: Check if Execute string is empty by testing first character.
    
    Fixes "the address of ‘Execute’ will always evaluate as ‘true’ [-Waddress]"
    warning.
---
 wmload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmload.c b/wmload.c
index f08b9aa..9ea6c9b 100644
--- a/wmload.c
+++ b/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();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git



More information about the Pkg-wmaker-commits mailing list