From 87443c956c60383edc1fc8ed16a76159cf793e39 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 11 May 2010 23:43:29 -0400 Subject: [PATCH] show empty properties in obxprop --- tools/obxprop/obxprop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/obxprop/obxprop.c b/tools/obxprop/obxprop.c index e4f6ff0..83ff54a 100644 --- a/tools/obxprop/obxprop.c +++ b/tools/obxprop/obxprop.c @@ -98,9 +98,9 @@ static gboolean get_all(Display *d, Window win, Atom prop, default: g_assert_not_reached(); /* unhandled size */ } - *num = ret_items; - ret = TRUE; } + *num = ret_items; + ret = TRUE; XFree(xdata); } return ret; @@ -254,7 +254,7 @@ void show_properties(Display *d, Window w, int argc, char **argv) } } if (found) - g_print("%s(%s) = %s\n", name, type, val); + g_print("%s(%s) = %s\n", name, type, (val ? val : "")); g_free(val); } -- 1.9.1