diff options
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 7c5a0a5d..f02f370b 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -514,8 +514,8 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) { | |||
514 | json_object_new_string(bar->hidden_state)); | 514 | json_object_new_string(bar->hidden_state)); |
515 | json_object_object_add(json, "position", | 515 | json_object_object_add(json, "position", |
516 | json_object_new_string(bar->position)); | 516 | json_object_new_string(bar->position)); |
517 | json_object_object_add(json, "status_command", | 517 | json_object_object_add(json, "status_command", bar->status_command ? |
518 | json_object_new_string(bar->status_command)); | 518 | json_object_new_string(bar->status_command) : NULL); |
519 | json_object_object_add(json, "font", | 519 | json_object_object_add(json, "font", |
520 | json_object_new_string((bar->font) ? bar->font : config->font)); | 520 | json_object_new_string((bar->font) ? bar->font : config->font)); |
521 | if (bar->separator_symbol) { | 521 | if (bar->separator_symbol) { |