Due to xmlNodeListGetString returning null on some platforms
and empty "" on others (probably depends on Libxml2 version).
else if (!strcmp(name, (const char *) type))
{
xmlChar *value = xmlNodeListGetString(doc, n->children, 1);
else if (!strcmp(name, (const char *) type))
{
xmlChar *value = xmlNodeListGetString(doc, n->children, 1);
{
const char *norm_str;
pp2_charset_token_t prt =
{
const char *norm_str;
pp2_charset_token_t prt =
wrbuf_puts(norm_wr, norm_str);
}
}
wrbuf_puts(norm_wr, norm_str);
}
}
pp2_charset_token_destroy(prt);
no_found++;
}
pp2_charset_token_destroy(prt);
no_found++;
}
+ if (value)
+ xmlFree(value);