summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_opml_import.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index 03c7da3..df74cc9 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -30,6 +30,12 @@ printsafe(const char *s)
}
static void
+xmltagstart(XMLParser *p, const char *t, size_t tl)
+{
+ url[0] = text[0] = title[0] = '\0';
+}
+
+static void
xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
{
if (strcasecmp(t, "outline"))
@@ -47,6 +53,7 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
printsafe(url);
fputs("'\n", stdout);
}
+
url[0] = text[0] = title[0] = '\0';
}
@@ -88,6 +95,7 @@ main(void)
parser.xmlattr = xmlattr;
parser.xmlattrentity = xmlattrentity;
+ parser.xmltagstart = xmltagstart;
parser.xmltagend = xmltagend;
fputs(