diff options
Diffstat (limited to 'sway/commands/bar/separator_symbol.c')
-rw-r--r-- | sway/commands/bar/separator_symbol.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/separator_symbol.c b/sway/commands/bar/separator_symbol.c index 76e99b49..6737d4d2 100644 --- a/sway/commands/bar/separator_symbol.c +++ b/sway/commands/bar/separator_symbol.c | |||
@@ -8,9 +8,6 @@ struct cmd_results *bar_cmd_separator_symbol(int argc, char **argv) { | |||
8 | if ((error = checkarg(argc, "separator_symbol", EXPECTED_EQUAL_TO, 1))) { | 8 | if ((error = checkarg(argc, "separator_symbol", EXPECTED_EQUAL_TO, 1))) { |
9 | return error; | 9 | return error; |
10 | } | 10 | } |
11 | if (!config->current_bar) { | ||
12 | return cmd_results_new(CMD_FAILURE, "No bar defined."); | ||
13 | } | ||
14 | free(config->current_bar->separator_symbol); | 11 | free(config->current_bar->separator_symbol); |
15 | config->current_bar->separator_symbol = strdup(argv[0]); | 12 | config->current_bar->separator_symbol = strdup(argv[0]); |
16 | sway_log(SWAY_DEBUG, "Settings separator_symbol '%s' for bar: %s", | 13 | sway_log(SWAY_DEBUG, "Settings separator_symbol '%s' for bar: %s", |