wmload: Check if Execute string is empty by testing first character.

Fixes "the address of ‘Execute’ will always evaluate as ‘true’ [-Waddress]"
warning.
This commit is contained in:
Doug Torrance 2015-04-07 02:45:21 -05:00 committed by Carlos R. Mafra
parent 615412876a
commit 04a36b3ae4

View file

@ -117,7 +117,7 @@ void ExecuteExternal()
#ifdef DEBUG
printf("asload: system(%s)\n",Execute);
#endif
if( ! Execute ) {
if( Execute[0] == '\0' ) {
return;
}
ruid = getuid();