summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-12 23:32:03 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-13 00:13:14 +0200
commit606f0b1faab58b2b44bd60a9f3fe056706d1ab6e (patch)
treec7de2209e8791c92007ae0f0945cca41668e8d4b
parentb9241bdef9183c29fb3b05bae9f0810f5dc306c0 (diff)
downloadxK-606f0b1faab58b2b44bd60a9f3fe056706d1ab6e.tar.gz
xK-606f0b1faab58b2b44bd60a9f3fe056706d1ab6e.tar.xz
xK-606f0b1faab58b2b44bd60a9f3fe056706d1ab6e.zip
degesch: fix /server add
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 325ea83..1301a2d 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7466,11 +7466,11 @@ show_servers_list (struct app_context *ctx)
static bool
handle_server_add (struct handler_args *a)
{
- char *name = cut_word (&a->arguments);
if (!*a->arguments)
return false;
struct app_context *ctx = a->ctx;
+ char *name = cut_word (&a->arguments);
if (check_server_name_for_addition (ctx, name))
server_add_new (ctx, name);
return true;