aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 1b3b6e0..19875e3 100644
--- a/window.c
+++ b/window.c
@@ -95,7 +95,7 @@ static const char* win_res(XrmDatabase db, const char *name, const char *def)
if (db != NULL &&
XrmGetResource(db, name, name, &type, &ret) &&
- STREQ(type, "String"))
+ STREQ(type, "String") && *ret.addr != '\0')
{
return ret.addr;
} else {