aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/fxtv/files/patch-tvmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/fxtv/files/patch-tvmenu.c')
-rw-r--r--multimedia/fxtv/files/patch-tvmenu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/fxtv/files/patch-tvmenu.c b/multimedia/fxtv/files/patch-tvmenu.c
new file mode 100644
index 000000000000..d21ff995ded8
--- /dev/null
+++ b/multimedia/fxtv/files/patch-tvmenu.c
@@ -0,0 +1,20 @@
+--- tvmenu.c.orig Mon Feb 12 22:19:33 2001
++++ tvmenu.c Sun Nov 27 01:55:24 2005
+@@ -552,7 +552,7 @@
+ Widget popup_win, new_popup_item = NULL;
+ Cardinal num_children, i;
+ WidgetList children;
+- String actual_station, temp_station;
++ String actual_station = NULL, temp_station = NULL;
+ #ifdef FIXME
+ Pixmap pix;
+ #endif
+@@ -589,7 +589,7 @@
+
+ XtVaSetValues(children[i], XtNleftBitmap, pix, NULL);
+ #else
+- if ( strcmp( actual_station, temp_station ) == 0 )
++ if ( strcmp( actual_station==NULL ? "" : actual_station, temp_station==NULL ? "" : temp_station ) == 0 )
+ new_popup_item = children[i];
+ #endif
+ }