[goobox] check whether the asin is void before using it



commit 58fdae80177a7f0ec5fc5e790b655798b2f79aa9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jun 5 18:51:50 2011 +0200

    check whether the asin is void before using it

 src/goo-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/goo-window.c b/src/goo-window.c
index 62e02ce..67a7bcd 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -1641,7 +1641,7 @@ auto_fetch_cover_image (GooWindow *window)
 	}
 	g_free (filename);
 
-	if (window->priv->album->asin != NULL)
+	if ((window->priv->album->asin != NULL) && (strcmp (window->priv->album->asin, "") != 0))
 		fetch_cover_image_from_asin (window, window->priv->album->asin);
 	else if ((window->priv->album->title != NULL) && (window->priv->album->artist != NULL))
 		fetch_cover_image_from_name (window, window->priv->album->title, window->priv->album->artist);



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