# HG changeset patch # User Andreas Monitzer # Date 1182135442 0 # Node ID 60c8535afc33e7f0cd8b0e9715b0771de80711b0 # Parent 248d2d0c606e35097f194782031667e8080048b8 Fixed embarrassing typos. Maybe I shouldn't code while half asleep. diff -r 248d2d0c606e -r 60c8535afc33 libpurple/protocols/jabber/usertune.c --- 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); } }