From dcb1d2f97b24f4fd80290bf5c2742ab1b4ef0654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 11 Jul 2015 01:44:58 +0200 Subject: [PATCH] degesch: fix argument checking --- degesch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/degesch.c b/degesch.c index 041fa4f..132fcec 100644 --- a/degesch.c +++ b/degesch.c @@ -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;