Commit fef06300 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

thumbnailer: Correctly check for errors

By checking the retval, not whether error was set.

https://bugzilla.gnome.org/show_bug.cgi?id=699252
parent d045e367
......@@ -398,13 +398,11 @@ _gdk_pixbuf_new_from_uri_at_scale (const char *uri,
sizeof (buffer),
NULL,
&error);
if (error != NULL) {
if (bytes_read == -1) {
g_warning ("Error reading from %s: %s", uri, error->message);
g_clear_error (&error);
break;
}
if (bytes_read == -1) {
break;
}
result = TRUE;
if (bytes_read == 0) {
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment