changeset 17590:60c8535afc33

Fixed embarrassing typos. Maybe I shouldn't code while half asleep.
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 18 Jun 2007 02:57:22 +0000
parents 248d2d0c606e
children 58a145802f0a
files libpurple/protocols/jabber/usertune.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/usertune.c	Mon Jun 18 02:46:44 2007 +0000
+++ b/libpurple/protocols/jabber/usertune.c	Mon Jun 18 02:57:22 2007 +0000
@@ -53,7 +53,7 @@
 	for (tuneinfo = tune->child; tuneinfo; tuneinfo = tuneinfo->next) {
 		if (tuneinfo->type == XMLNODE_TYPE_TAG) {
 			if (!strcmp(tuneinfo->name, "artist")) {
-				if (tuneinfodata.artist[0] != '\0') /* only pick the first one */
+				if (tuneinfodata.artist[0] == '\0') /* only pick the first one */
 					tuneinfodata.artist = xmlnode_get_data(tuneinfo);
 			} else if (!strcmp(tuneinfo->name, "length")) {
 				if (tuneinfodata.time == -1) {
@@ -62,16 +62,16 @@
 						tuneinfodata.time = strtol(length, NULL, 10);
 				}
 			} else if (!strcmp(tuneinfo->name, "source")) {
-				if (tuneinfodata.album[0] != '\0') /* only pick the first one */
+				if (tuneinfodata.album[0] == '\0') /* only pick the first one */
 					tuneinfodata.album = xmlnode_get_data(tuneinfo);
 			} else if (!strcmp(tuneinfo->name, "title")) {
-				if (tuneinfodata.title[0] != '\0') /* only pick the first one */
+				if (tuneinfodata.title[0] == '\0') /* only pick the first one */
 					tuneinfodata.title = xmlnode_get_data(tuneinfo);
 			} else if (!strcmp(tuneinfo->name, "track")) {
-				if (tuneinfodata.track[0] != '\0') /* only pick the first one */
+				if (tuneinfodata.track[0] == '\0') /* only pick the first one */
 					tuneinfodata.track = xmlnode_get_data(tuneinfo);
 			} else if (!strcmp(tuneinfo->name, "uri")) {
-				if (tuneinfodata.url[0] != '\0') /* only pick the first one */
+				if (tuneinfodata.url[0] == '\0') /* only pick the first one */
 					tuneinfodata.url = xmlnode_get_data(tuneinfo);
 			}
 		}