summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-17 15:54:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-17 16:11:16 -0400
commit8ba55d80fc90fd21a751b676095e853e6630c0d0 (patch)
tree40d9baf1848597ab687ebf8a2e7eb39cd39c706d /gtk/gtkicontheme.c
parent91b147622bbd313200b79ab97811b6dc3ba9bdcc (diff)
downloadgtk+-8ba55d80fc90fd21a751b676095e853e6630c0d0.tar.gz
gtkicontheme: Check a return value
We were already looking at the error anyway, but rewriting things this way lets coverity see the light.
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index eebe954798..001dc22b8d 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1158,8 +1158,7 @@ insert_theme (GtkIconTheme *icon_theme,
{
theme_file = g_key_file_new ();
g_key_file_set_list_separator (theme_file, ',');
- g_key_file_load_from_file (theme_file, path, 0, &error);
- if (error)
+ if (!g_key_file_load_from_file (theme_file, path, 0, &error))
{
g_key_file_free (theme_file);
theme_file = NULL;
@@ -4098,7 +4097,7 @@ load_icon_thread (GTask *task,
{
GtkIconInfo *dup = task_data;
- icon_info_ensure_scale_and_pixbuf (dup);
+ (void)icon_info_ensure_scale_and_pixbuf (dup);
g_task_return_pointer (task, NULL, NULL);
}