summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-05-06 18:48:19 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-05-06 18:48:19 +0200
commit49f64fd33c202831407ba6b02fa74c2037052f1c (patch)
tree858f5724e361aab653747a0a71cd1303cd0cc61d
parentda587f1423529e6daae07bc4ff604ab5d6132942 (diff)
downloadpianobar-49f64fd33c202831407ba6b02fa74c2037052f1c.tar.gz
pianobar-49f64fd33c202831407ba6b02fa74c2037052f1c.tar.bz2
pianobar-49f64fd33c202831407ba6b02fa74c2037052f1c.zip
Fix useQuixMix attribute
No station was shown as useQuickMix, because callback function set pointer to NULL for members that did not have anything to do with the quickmix stuff. Don't do that. Closes #118.
-rw-r--r--src/libpiano/xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c
index 772bbe2..b067bc0 100644
--- a/src/libpiano/xml.c
+++ b/src/libpiano/xml.c
@@ -373,8 +373,9 @@ static void PianoXmlParseQuickMixStationsCb (const char *key, const ezxml_t valu
}
}
ids[idsN-1] = NULL;
+
+ *retIds = ids;
}
- *retIds = ids;
}
/* parse stations returned by pandora