[rhythmbox] fix potential segfault introduced by 88c62d20c3a3fbf6f2ec94ee5332a2a715cad3a7



commit 70268bab5d24a97bc0f2b16c877605e3ab2ae2fb
Author: Jamie Nicol <jamie thenicols net>
Date:   Fri Aug 13 01:16:52 2010 +0100

    fix potential segfault introduced by 88c62d20c3a3fbf6f2ec94ee5332a2a715cad3a7

 .../rb-audioscrobbler-radio-source.c               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
index 7a21aa1..63ce157 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
@@ -728,7 +728,7 @@ tune_response_cb (SoupSession *session,
 		 * both Last.fm and Libre.fm.
 		 */
 		if (json_object_has_member (root_object, "station") ||
-		    strcmp (json_object_get_string_member (root_object, "status"), "ok") == 0) {
+		    json_object_has_member (root_object, "status")) {
 			rb_debug ("tune request was successful");
 
 			/* get the playlist */



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