[libmediaart] cache: Fix Non-void function should return a value



commit 12d8d77900295a2c0e856eb71bfc7ed262b9a3b6
Author: Ting-Wei Lan <lantw44 gmail com>
Date:   Fri Feb 7 16:05:17 2014 +0000

    cache: Fix Non-void function should return a value
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723847

 libmediaart/cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libmediaart/cache.c b/libmediaart/cache.c
index b88f92c..774e2cf 100644
--- a/libmediaart/cache.c
+++ b/libmediaart/cache.c
@@ -410,7 +410,7 @@ media_art_remove (const gchar *artist,
        gchar *target = NULL;
        gchar *album_path = NULL;
 
-       g_return_if_fail (artist != NULL && artist[0] != '\0');
+       g_return_val_if_fail (artist != NULL && artist[0] != '\0', FALSE);
 
        dirname = g_build_filename (g_get_user_cache_dir (), "media-art", NULL);
 


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