wow lets not write broken code okay?
authorMikael Magnusson <mikachu@comhem.se>
Sat, 2 Sep 2006 23:56:52 +0000 (23:56 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 2 Sep 2006 23:56:52 +0000 (23:56 +0000)
rspanel.c

index 9213890..aa63663 100644 (file)
--- a/rspanel.c
+++ b/rspanel.c
@@ -1073,8 +1073,10 @@ void handle_propertynotify(Window win, Atom at)
 
     if (at == XA_WM_NAME || at == atom__NET_WM_NAME) {
         /* window's title changed */
-        char *newname = get_prop_data(tk->win, atom__NET_WM_NAME, atom_STRING_UTF8, 0);
-        if (newname ?: get_prop_data(tk->win, XA_WM_NAME, XA_STRING, 0)) {
+        char *newname;
+        newname = get_prop_data(tk->win, atom__NET_WM_NAME, atom_STRING_UTF8, 0) ?:
+                  get_prop_data(tk->win, XA_WM_NAME, XA_STRING, 0);
+        if (newname) {
             if (tk->name && !strcmp(newname, tk->name)) {
                 XFree(newname);
                 return;