]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/src/child.c
i3bar: check `short_text` for NULL on dump
[i3/i3] / i3bar / src / child.c
index a461c9313bf9f16a2391e5e03f2ff3daca4cf408..5347632ad6490d92edcbdd7ebc8bb4d3dfef132a 100644 (file)
@@ -286,7 +286,7 @@ static int stdin_end_array(void *context) {
     struct status_block *current;
     TAILQ_FOREACH(current, &statusline_head, blocks) {
         DLOG("full_text = %s\n", i3string_as_utf8(current->full_text));
-        DLOG("short_text = %s\n", i3string_as_utf8(current->short_text));
+        DLOG("short_text = %s\n", (current->short_text == NULL ? NULL : i3string_as_utf8(current->short_text)));
         DLOG("color = %s\n", current->color);
     }
     DLOG("end of dump\n");