degesch: fix argument checking

This commit is contained in:
Přemysl Eric Janouch 2015-07-11 01:44:58 +02:00
parent 5da45877d6
commit dcb1d2f97b
1 changed files with 2 additions and 2 deletions

View File

@ -6722,7 +6722,7 @@ handle_command_set_assign
else if (!strcmp (op, "-=")) remove = true; else if (!strcmp (op, "-=")) remove = true;
else if (strcmp (op, "=")) return false; else if (strcmp (op, "=")) return false;
if (!arguments) if (!*arguments)
return false; return false;
struct error *e = NULL; struct error *e = NULL;
@ -7283,7 +7283,7 @@ static bool
handle_server_add (struct handler_args *a) handle_server_add (struct handler_args *a)
{ {
char *name = cut_word (&a->arguments); char *name = cut_word (&a->arguments);
if (*a->arguments) if (!*a->arguments)
return false; return false;
struct app_context *ctx = a->ctx; struct app_context *ctx = a->ctx;