[gnome-photos/gnome-3-24] thumbnail-factory: Fix typo and silence -Wpointer-compare
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-24] thumbnail-factory: Fix typo and silence -Wpointer-compare
- Date: Tue, 6 Jun 2017 18:08:04 +0000 (UTC)
commit 2d783ca06ea0601c71b0c0b3a5a46a64a916fb40
Author: Timm Bäder <mail baedert org>
Date: Tue Jun 6 18:54:21 2017 +0200
thumbnail-factory: Fix typo and silence -Wpointer-compare
Fallout from 48c353aee8b89fdc002dcfc40e14177fb7eab603
src/photos-thumbnail-factory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-thumbnail-factory.c b/src/photos-thumbnail-factory.c
index 01f5dc5..229e41d 100644
--- a/src/photos-thumbnail-factory.c
+++ b/src/photos-thumbnail-factory.c
@@ -380,7 +380,7 @@ photos_thumbnail_factory_generate_thumbnail (PhotosThumbnailFactory *self,
g_return_val_if_fail (PHOTOS_IS_THUMBNAIL_FACTORY (self), FALSE);
g_return_val_if_fail (G_IS_FILE (file), FALSE);
g_return_val_if_fail (g_file_is_native (file), FALSE);
- g_return_val_if_fail (mime_type != NULL && mime_type != '\0', FALSE);
+ g_return_val_if_fail (mime_type != NULL && mime_type[0] != '\0', FALSE);
g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]