diff options
-rw-r--r-- | sway/commands/bar.c | 1 |
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; |