projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f07c7
)
Fix a compiler warning
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 13 Jan 2023 16:42:20 +0000
(11:42 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 13 Jan 2023 17:07:40 +0000
(12:07 -0500)
Clang things that load_error might be NULL here.
It may be right.
gtk/gtkicontheme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkicontheme.c
b/gtk/gtkicontheme.c
index e98240c0103d59d55839c7419cd66d40131665d5..6340186fca1dde59500ca7c07c425b5e8e91d3b5 100644
(file)
--- a/
gtk/gtkicontheme.c
+++ b/
gtk/gtkicontheme.c
@@
-3840,7
+3840,7
@@
icon_ensure_texture__locked (GtkIconPaintable *icon,
if (!icon->texture)
{
- g_warning ("Failed to load icon %s: %s", icon->filename, load_error
->message
);
+ g_warning ("Failed to load icon %s: %s", icon->filename, load_error
? load_error->message : ""
);
g_clear_error (&load_error);
icon->texture = gdk_texture_new_from_resource (IMAGE_MISSING_RESOURCE_PATH);
icon->icon_name = g_strdup ("image-missing");