nut/nut-upssched.patch

14 lines
385 B
Diff
Raw Normal View History

diff --git a/clients/upssched.c b/clients/upssched.c
index 97b3ed42..3fdf118e 100644
--- a/clients/upssched.c
+++ b/clients/upssched.c
@@ -794,7 +794,7 @@ static void parse_at(const char *ntype, const char *un, const char *cmd,
}
if (!strcmp(cmd, "EXECUTE")) {
- if (ca1 == '\0') {
+ if (*ca1 == '\0') {
upslogx(LOG_ERR, "Empty EXECUTE command argument");
return;
}