mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Explicitly compare result of str(n)cmp/memcmp to signify that it's not boolean
This commit is contained in:
@@ -626,7 +626,7 @@ gtr_label_set_text (GtkLabel * lb, const char * newstr)
|
||||
{
|
||||
const char * oldstr = gtk_label_get_text (lb);
|
||||
|
||||
if (g_strcmp0 (oldstr, newstr))
|
||||
if (g_strcmp0 (oldstr, newstr) != 0)
|
||||
gtk_label_set_text (lb, newstr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user