diff options
author | sabetts <sabetts> | 2002-01-26 23:59:26 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-01-26 23:59:26 +0000 |
commit | 0a53640a044b85a537d49d9ae71a1c69ad08940b (patch) | |
tree | ef4451740e49cd3eef6ef8d70c21fa31fe11479f /src/list.c | |
parent | 8595eca7d51f3d1b0d205c117fdb1dc7ea14f765 (diff) | |
download | ratpoison-0a53640a044b85a537d49d9ae71a1c69ad08940b.zip |
* src/list.c (format_window_name): If res_class or res_name are
NULL use "None" instead.
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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': |