diff options
author | Andreas Krennmair <ak@synflood.at> | 2008-02-09 10:53:24 +0000 |
---|---|---|
committer | Andreas Krennmair <ak@synflood.at> | 2008-02-09 10:53:24 +0000 |
commit | 655e9e46dacac5c3f12218f2f218dbbf1a912afc (patch) | |
tree | ec7a5948cc2baf8fbf949cedaae447205bdf84ad | |
parent | c76813e6c0db748680b0946dc0d96d98a7557f35 (diff) |
Andreas Krennmair:
Atom rendering improvement.
-rw-r--r-- | xmlrss/mrss_parser.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmlrss/mrss_parser.c b/xmlrss/mrss_parser.c index bec20d40..878f2608 100644 --- a/xmlrss/mrss_parser.c +++ b/xmlrss/mrss_parser.c @@ -143,12 +143,21 @@ __mrss_parser_atom_string (nxml_t * doc, nxml_data_t * cur, char **what, { nxml_data_t *ncur; char *total; + const char *c1; nxml_t *new; int size; total = NULL; size = 0; + c1 = nxmle_get_string(cur, NULL); + + if (c1 && strlen(c1) > 0) + { + total = strdup(c1); + size = strlen(total); + } + else while ((ncur = cur->children)) { char *buffer = NULL, *p; |