aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/commands/bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/bar.c b/sway/commands/bar.c
index a58f5438..8571d282 100644
--- a/sway/commands/bar.c
+++ b/sway/commands/bar.c
@@ -116,6 +116,7 @@ struct cmd_results *cmd_bar(int argc, char **argv) {
if (res && res->status != CMD_SUCCESS) {
if (id) {
free_bar_config(config->current_bar);
+ config->current_bar = NULL;
id = NULL;
}
return res;