summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 15:01:44 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 15:01:44 +0200
commitae4c6ae9f49f9dcce9f74e39ab313c1f8efaa166 (patch)
treefb1048e20d5767b22313b546cd3dcf7c37d0046d /libpiano
parent37482265ddc20dcb8c6d4cbb5e7ba5470df0e2df (diff)
downloadpianobar-ae4c6ae9f49f9dcce9f74e39ab313c1f8efaa166.tar.gz
pianobar-ae4c6ae9f49f9dcce9f74e39ab313c1f8efaa166.tar.bz2
pianobar-ae4c6ae9f49f9dcce9f74e39ab313c1f8efaa166.zip
Fix PianoXmlParseRate return value on xml parser error
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpiano/xml.c b/libpiano/xml.c
index 119e213..97f56f8 100644
--- a/libpiano/xml.c
+++ b/libpiano/xml.c
@@ -296,7 +296,7 @@ PianoReturn_t PianoXmlParseRate (char *xml) {
if (doc == NULL) {
printf ("whoops... xml parser error\n");
- return;
+ return PIANO_RET_ERR;
}
docRoot = xmlDocGetRootElement (doc);