Needed when string length equal 1.
exemple: <programme channel="chanel.4" stop="20120619054500 +0200" start="20120619052000 +0200"> <title>H</title> </programme>
This commit is contained in:
parent
dd1800c76c
commit
b2f4aeb035
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue