Explicitly compare result of str(n)cmp/memcmp to signify that it's not boolean

This commit is contained in:
Mike Gelfand
2016-03-13 22:11:01 +00:00
parent 91f8ceb20d
commit c955c04d8f
40 changed files with 298 additions and 298 deletions

View File

@@ -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);
}