diff options
author | emersion <contact@emersion.fr> | 2017-12-12 21:09:51 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-12 21:09:51 +0100 |
commit | d293c429424a9f96c3fc8143af457645326e7a0e (patch) | |
tree | 530509af18e72af36a52e9fd3970a706695919be /sway/commands | |
parent | c7abb77f2217cc4d5642ef1650f7fc75e1c1a9a4 (diff) | |
download | sway-d293c429424a9f96c3fc8143af457645326e7a0e.tar.xz |
Update output container box in event handler
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index be78358a..23792855 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c @@ -29,7 +29,8 @@ struct cmd_results *cmd_output(int argc, char **argv) { struct output_config *output = new_output_config(); if (!output) { - return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config"); + sway_log(L_ERROR, "Failed to allocate output config"); + return NULL; } output->name = strdup(name); |