1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

- Fix segfault while changing stations

- Bump PORTREVISION

Submitted by:	Simun Mikecin <numisemis@yahoo.com>
PR:		ports/89614
This commit is contained in:
Simon Barner 2005-11-30 10:22:56 +00:00
parent 043e17e54b
commit 0300ad0fc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150015
2 changed files with 13 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= fxtv
PORTVERSION= 1.03
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= rhh

View File

@ -1,11 +1,20 @@
--- tvmenu.c.orig Fri Sep 23 23:56:25 2005
+++ tvmenu.c Fri Sep 23 23:56:25 2005
--- 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, temp_station==NULL ? "" : temp_station ) == 0 )
+ if ( strcmp( actual_station==NULL ? "" : actual_station, temp_station==NULL ? "" : temp_station ) == 0 )
new_popup_item = children[i];
#endif
}