From: Matthias Clasen Date: Fri, 13 Jan 2023 16:42:20 +0000 (-0500) Subject: Fix a compiler warning X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~65^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=703ed608c0be275e8b77ac64d3e9cd51feaa22c4;p=gtk4.git Fix a compiler warning Clang things that load_error might be NULL here. It may be right. --- diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index e98240c010..6340186fca 100644 --- 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");