summaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/status_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar/status_command.c')
-rw-r--r--sway/commands/bar/status_command.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/status_command.c b/sway/commands/bar/status_command.c
index 0b58e5fa..77a73ab6 100644
--- a/sway/commands/bar/status_command.c
+++ b/sway/commands/bar/status_command.c
@@ -8,9 +8,6 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
8 if ((error = checkarg(argc, "status_command", EXPECTED_AT_LEAST, 1))) { 8 if ((error = checkarg(argc, "status_command", EXPECTED_AT_LEAST, 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->status_command); 11 free(config->current_bar->status_command);
15 config->current_bar->status_command = NULL; 12 config->current_bar->status_command = NULL;
16 13