diff options
Diffstat (limited to 'sway/commands/bar/output.c')
-rw-r--r-- | sway/commands/bar/output.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/output.c b/sway/commands/bar/output.c index 956c1959..6a78b30d 100644 --- a/sway/commands/bar/output.c +++ b/sway/commands/bar/output.c | |||
@@ -10,9 +10,6 @@ struct cmd_results *bar_cmd_output(int argc, char **argv) { | |||
10 | if ((error = checkarg(argc, "output", EXPECTED_EQUAL_TO, 1))) { | 10 | if ((error = checkarg(argc, "output", EXPECTED_EQUAL_TO, 1))) { |
11 | return error; | 11 | return error; |
12 | } | 12 | } |
13 | if (!config->current_bar) { | ||
14 | return cmd_results_new(CMD_FAILURE, "No bar defined."); | ||
15 | } | ||
16 | 13 | ||
17 | const char *output = argv[0]; | 14 | const char *output = argv[0]; |
18 | list_t *outputs = config->current_bar->outputs; | 15 | list_t *outputs = config->current_bar->outputs; |