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