From: Dana Jansens Date: Wed, 12 May 2010 03:43:29 +0000 (-0400) Subject: show empty properties in obxprop X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=87443c956c60383edc1fc8ed16a76159cf793e39;p=chaz%2Fopenbox show empty properties in obxprop --- diff --git a/tools/obxprop/obxprop.c b/tools/obxprop/obxprop.c index e4f6ff0e..83ff54a1 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); }