projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299e2ed
)
picture: Don't use g_str_equal() with potential NULLs
author
Benjamin Otte
<otte@redhat.com>
Sun, 10 Jun 2018 00:56:18 +0000
(
02:56
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 10 Jun 2018 00:56:18 +0000
(
02:56
+0200)
gtk/gtkpicture.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpicture.c
b/gtk/gtkpicture.c
index b84ba68e29cc4cb82650039fa516bda683bba390..3a8970a567162f54ae695c0c6d36d7f762a679cc 100644
(file)
--- 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_str
cmp0 (self->alternative_text, alternative_text) == 0
)
return;
g_free (self->alternative_text);