aboutsummaryrefslogtreecommitdiffstats
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/bar/status_command.c b/sway/commands/bar/status_command.c
index 490393f1..c379cc72 100644
--- a/sway/commands/bar/status_command.c
+++ b/sway/commands/bar/status_command.c
@@ -9,8 +9,7 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
9 return error; 9 return error;
10 } 10 }
11 if (!config->current_bar) { 11 if (!config->current_bar) {
12 return cmd_results_new(CMD_FAILURE, 12 return cmd_results_new(CMD_FAILURE, "No bar defined.");
13 "status_command", "No bar defined.");
14 } 13 }
15 free(config->current_bar->status_command); 14 free(config->current_bar->status_command);
16 config->current_bar->status_command = NULL; 15 config->current_bar->status_command = NULL;
@@ -28,5 +27,5 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
28 load_swaybar(config->current_bar); 27 load_swaybar(config->current_bar);
29 } 28 }
30 29
31 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 30 return cmd_results_new(CMD_SUCCESS, NULL);
32} 31}