diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 01:44:58 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 01:44:58 +0200 |
commit | dcb1d2f97b24f4fd80290bf5c2742ab1b4ef0654 (patch) | |
tree | 0eff1ea1a58a8ed1983e7945c8c2bcadf1d37d30 | |
parent | 5da45877d6e5abd5e42da331f9371e8ae1bcece8 (diff) | |
download | xK-dcb1d2f97b24f4fd80290bf5c2742ab1b4ef0654.tar.gz xK-dcb1d2f97b24f4fd80290bf5c2742ab1b4ef0654.tar.xz xK-dcb1d2f97b24f4fd80290bf5c2742ab1b4ef0654.zip |
degesch: fix argument checking
-rw-r--r-- | degesch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6722,7 +6722,7 @@ handle_command_set_assign else if (!strcmp (op, "-=")) remove = true; else if (strcmp (op, "=")) return false; - if (!arguments) + if (!*arguments) return false; struct error *e = NULL; @@ -7283,7 +7283,7 @@ static bool handle_server_add (struct handler_args *a) { char *name = cut_word (&a->arguments); - if (*a->arguments) + if (!*a->arguments) return false; struct app_context *ctx = a->ctx; |