summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/manage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index a0bee7f..26a14ee 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -110,6 +110,13 @@ get_wmname (Window w)
return NULL;
}
+ if (n == 0)
+ {
+ PRINT_DEBUG (("I can't get the WMName.\n"));
+ XFree (name);
+ return NULL;
+ }
+
PRINT_DEBUG (("WM_NAME: '%s'\n", name));
/* duplicate the string into our own buffer, and free the one given