mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
picture: Don't use g_str_equal() with potential NULLs
This commit is contained in:
parent
299e2ed44c
commit
a34a5df674
@ -947,7 +947,7 @@ gtk_picture_set_alternative_text (GtkPicture *self,
|
||||
{
|
||||
g_return_if_fail (GTK_IS_PICTURE (self));
|
||||
|
||||
if (g_str_equal (self->alternative_text, alternative_text))
|
||||
if (g_strcmp0 (self->alternative_text, alternative_text) == 0)
|
||||
return;
|
||||
|
||||
g_free (self->alternative_text);
|
||||
|
Loading…
Reference in New Issue
Block a user