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:
parent
615412876a
commit
04a36b3ae4
|
@ -117,7 +117,7 @@ void ExecuteExternal()
|
|||
#ifdef DEBUG
|
||||
printf("asload: system(%s)\n",Execute);
|
||||
#endif
|
||||
if( ! Execute ) {
|
||||
if( Execute[0] == '\0' ) {
|
||||
return;
|
||||
}
|
||||
ruid = getuid();
|
||||
|
|
Loading…
Reference in a new issue