From: cohe6423 Date: Mon, 18 Jun 2012 20:45:03 +0000 (+0300) Subject: Needed when string length equal 1. X-Git-Tag: 3.0~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F93%2Fhead;p=thirdparty%2Ftvheadend.git Needed when string length equal 1. exemple: H --- diff --git a/src/htsmsg_xml.c b/src/htsmsg_xml.c index 7c4947704..77e27b009 100644 --- a/src/htsmsg_xml.c +++ b/src/htsmsg_xml.c @@ -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;