Merge pull request #93 from cohe6423/patch-1

Needed when string length equal 1.
This commit is contained in:
Andreas Öman 2012-06-18 14:27:01 -07:00
commit e910902528

View file

@ -1,6 +1,6 @@
/*
* Functions converting HTSMSGs to/from XML
* Copyright (C) 2008 Andreas Öman
* Copyright (C) 2008 Andreas <EFBFBD>man
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -707,7 +707,7 @@ htsmsg_xml_parse_cd(xmlparser_t *xp, htsmsg_t *parent, char *src)
*cc->cc_end = 0;
free(cc);
} else if(c > 1) {
} else if(c > 0) {
body = malloc(c + 1);
c = 0;