[gnome-desktop] thumbnailer: Always print errors from gs_file_read_noatime()



commit d045e367cc37c774e3d76839b65aaf947b2f65ad
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Aug 24 05:36:45 2013 +0200

    thumbnailer: Always print errors from gs_file_read_noatime()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699252

 libgnome-desktop/gnome-desktop-thumbnail.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index c160330..fb51b80 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -381,10 +381,8 @@ _gdk_pixbuf_new_from_uri_at_scale (const char *uri,
     if (input_stream == NULL) {
         input_stream = gs_file_read_noatime (file, NULL, &error);
         if (input_stream == NULL) {
-            if (error != NULL) {
-                g_warning ("Unable to create an input stream for %s: %s", uri, error->message);
-                g_clear_error (&error);
-            }
+            g_warning ("Unable to create an input stream for %s: %s", uri, error->message);
+            g_clear_error (&error);
            g_object_unref (file);
             return NULL;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]