GNOME Bugzilla – Bug 336652
eog overwrites GErrors
Last modified: 2006-03-31 23:42:51 UTC
eog_thumb_data_new if (result != GNOME_VFS_OK) { set_vfs_error (error, result); } /* check required info fields */ if (((info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_MTIME) == 0) || ((info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE) == 0)) { set_thumb_error (error, EOG_THUMB_ERROR_GENERIC, "MTime or mime type not available"); } is missing an else before the second if. No need to set the error twice.
Fixed in HEAD and stable branches. Thanks! 2006-03-31 Lucas Rocha <lucasr@gnome.org> * libeog/eog-thumbnail.c (eog_thumb_data_new): avoid setting the error twice (Fixes bug #336652).