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:
parent
3695344cfd
commit
b840cb931b
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue