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();
--
2.1.0
--
To unsubscribe, send mail to [email protected].