[gtk] picture: Don't use g_str_equal() with potential NULLs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] picture: Don't use g_str_equal() with potential NULLs
- Date: Sun, 10 Jun 2018 00:58:12 +0000 (UTC)
commit a34a5df67409974449fa337a2ad3c6302318679e
Author: Benjamin Otte <otte redhat com>
Date: Sun Jun 10 02:56:18 2018 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]