summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/list.c b/src/list.c
index 30e0325..a78eb57 100644
--- a/src/list.c
+++ b/src/list.c
@@ -672,11 +672,17 @@ format_window_name (char *fmt, rp_window *win, rp_window *other_win,
break;
case 'a':
- sbuf_concat (buffer, win->res_name);
+ if (win->res_name)
+ sbuf_concat (buffer, win->res_name);
+ else
+ sbuf_concat (buffer, "None");
break;
case 'c':
- sbuf_concat (buffer, win->res_class);
+ if (win->res_class)
+ sbuf_concat (buffer, win->res_class);
+ else
+ sbuf_concat (buffer, "None");
break;
case 'i':