diff options
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-desktop-thumbnail.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libmate-desktop/mate-desktop-thumbnail.c b/libmate-desktop/mate-desktop-thumbnail.c index 3280ee1..08fc510 100644 --- a/libmate-desktop/mate-desktop-thumbnail.c +++ b/libmate-desktop/mate-desktop-thumbnail.c @@ -1276,10 +1276,7 @@ mate_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf, const char *thumb_uri; thumb_uri = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::URI"); - if (!thumb_uri) - return FALSE; - - return strcmp (uri, thumb_uri) == 0; + return (g_strcmp0 (uri, thumb_uri) == 0); } /** @@ -1304,9 +1301,7 @@ mate_desktop_thumbnail_is_valid (GdkPixbuf *pixbuf, time_t thumb_mtime; thumb_uri = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::URI"); - if (!thumb_uri) - return FALSE; - if (strcmp (uri, thumb_uri) != 0) + if (g_strcmp0 (uri, thumb_uri) != 0) return FALSE; thumb_mtime_str = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::MTime"); |