1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

(trunk gtk) #2665 "Crash in GTK+ code" -- fixed for 1.80

This commit is contained in:
Charles Kerr 2009-12-14 00:34:51 +00:00
parent 3695344cfd
commit b840cb931b

View file

@ -612,7 +612,7 @@ gtr_label_set_text( GtkLabel * lb, const char * newstr )
{
const char * oldstr = gtk_label_get_text( lb );
if( strcmp( oldstr, newstr ) )
if( ( oldstr == NULL ) || strcmp( oldstr, newstr ) )
gtk_label_set_text( lb, newstr );
}