diff options
author | taiyu <taiyu.len@gmail.com> | 2015-09-18 08:33:28 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-09-18 08:33:28 -0700 |
commit | 7672886cb5927977617d274ebaec4a3840df0a5d (patch) | |
tree | 539e5031c1b44bd72ee7555eb19350c68ce73739 | |
parent | 0d51f62224a3c2e65894f1725076a588b172447c (diff) |
dont log empty config lines
-rw-r--r-- | sway/commands.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c index 80770e87..03c682d7 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1182,13 +1182,12 @@ enum cmd_status handle_command(char *_exec) { } enum cmd_status config_command(char *exec) { - sway_log(L_INFO, "handling config command '%s'", exec); enum cmd_status status = CMD_SUCCESS; int argc; char **argv = split_args(exec, &argc); - if (!argc) { - goto cleanup; - } + if (!argc) goto cleanup; + + sway_log(L_INFO, "handling config command '%s'", exec); // Endblock if (**argv == '}') { status = CMD_BLOCK_END; |