You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
683 B

  1. From 2ef929da38232af63ba53074ca97e95ae4faf912 Mon Sep 17 00:00:00 2001
  2. From: Arjen de Korte <build+lede@de-korte.org>
  3. Date: Tue, 28 Nov 2017 22:01:41 +0100
  4. Subject: [PATCH 2/2] Fix check for empty string
  5. ---
  6. clients/upssched.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/clients/upssched.c b/clients/upssched.c
  9. index 97b3ed42..3fdf118e 100644
  10. --- a/clients/upssched.c
  11. +++ b/clients/upssched.c
  12. @@ -794,7 +794,7 @@ static void parse_at(const char *ntype, const char *un, const char *cmd,
  13. }
  14. if (!strcmp(cmd, "EXECUTE")) {
  15. - if (ca1 == '\0') {
  16. + if (ca1[0] == '\0') {
  17. upslogx(LOG_ERR, "Empty EXECUTE command argument");
  18. return;
  19. }
  20. --
  21. 2.16.1