Blame xteddy-2.0.1-iconname.patch
|
|
921ea50 |
Fix use of uninitialized value, which causes random crashes on startup.
|
|
|
921ea50 |
|
|
|
921ea50 |
Lubomir Rintel <lkundrak@v3.sk>
|
|
|
921ea50 |
|
|
|
921ea50 |
diff -up xteddy-2.0.1/xteddy.c.iconname xteddy-2.0.1/xteddy.c
|
|
|
921ea50 |
--- xteddy-2.0.1/xteddy.c.iconname 2009-03-08 23:01:59.000000000 -0400
|
|
|
921ea50 |
+++ xteddy-2.0.1/xteddy.c 2009-03-08 23:02:12.000000000 -0400
|
|
|
921ea50 |
@@ -109,7 +109,7 @@ int main(int argc, char **argv)
|
|
|
921ea50 |
XSizeHints size_hints;
|
|
|
921ea50 |
XWMHints wm_hints;
|
|
|
921ea50 |
XClassHint class_hints;
|
|
|
921ea50 |
- XTextProperty windowName, iconName;
|
|
|
921ea50 |
+ XTextProperty windowName;
|
|
|
921ea50 |
int argnum;
|
|
|
921ea50 |
int use_wm, float_up, allow_quit;
|
|
|
921ea50 |
XEvent report;
|
|
|
921ea50 |
@@ -237,7 +237,7 @@ int main(int argc, char **argv)
|
|
|
921ea50 |
class_hints.res_name = progname;
|
|
|
921ea50 |
class_hints.res_class = "Xteddy";
|
|
|
921ea50 |
|
|
|
921ea50 |
- XSetWMProperties(display, win, &windowName, &iconName,
|
|
|
921ea50 |
+ XSetWMProperties(display, win, &windowName, NULL,
|
|
|
921ea50 |
argv, argc, &size_hints, &wm_hints, &class_hints);
|
|
|
921ea50 |
|
|
|
921ea50 |
/* Select event types wanted */
|