From a34a5df67409974449fa337a2ad3c6302318679e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 10 Jun 2018 02:56:18 +0200 Subject: [PATCH] picture: Don't use g_str_equal() with potential NULLs --- gtk/gtkpicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c index b84ba68e29..3a8970a567 100644 --- a/gtk/gtkpicture.c +++ b/gtk/gtkpicture.c @@ -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);