summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-05 18:11:19 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-05 18:11:19 +0800
commitd85e05ba91119e9702fbf2f2c8c5ace7139d3308 (patch)
tree487eb696173dc678b15f9fe11257f2dad169b2ce
parent84b91b75fbcd55cd193ab7bba480b1296f35d6a3 (diff)
downloadtitleinfo-d85e05ba91119e9702fbf2f2c8c5ace7139d3308.tar.gz
titleinfo-d85e05ba91119e9702fbf2f2c8c5ace7139d3308.tar.bz2
Fix wrong dangling pointer
-rw-r--r--src/titleinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/titleinfo.cpp b/src/titleinfo.cpp
index 78ecbb2..621723d 100644
--- a/src/titleinfo.cpp
+++ b/src/titleinfo.cpp
@@ -120,7 +120,7 @@ TitleinfoScreen::getUtf8Property (Window id,
Atom type;
int result, format;
unsigned long nItems, bytesAfter;
- char *val, *retval_c;
+ char *val = NULL, *retval_c = NULL;
CompString retval;
result = XGetWindowProperty (screen->dpy (), id, atom, 0L, 65536, False,