]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Needed when string length equal 1. 93/head
authorcohe6423 <cohe6423@orange.fr>
Mon, 18 Jun 2012 20:45:03 +0000 (23:45 +0300)
committercohe6423 <cohe6423@orange.fr>
Mon, 18 Jun 2012 20:45:03 +0000 (23:45 +0300)
exemple:
<programme channel="chanel.4" stop="20120619054500 +0200" start="20120619052000 +0200">
<title>H</title>
</programme>

src/htsmsg_xml.c

index 7c49477048f379383b0452c69075a1803b3002df..77e27b0095714734e7590577801bd330045daaa4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Functions converting HTSMSGs to/from XML
- *  Copyright (C) 2008 Andreas Öman
+ *  Copyright (C) 2008 Andreas 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;