Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Call xmlInitParser()

  • Loading branch information...
commit 7e22409a06834f92ba9e700e0739837090fbffcf 1 parent 0ea7cf3
Nikolai Weibull authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 src/nmc.c
4 src/nmc.c
@@ -46,6 +46,9 @@ main(UNUSED(int argc), UNUSED(char **argv))
46 46
47 47 if (getenv("NMC_DEBUG"))
48 48 nmc_grammar_debug = 1;
  49 +
  50 + xmlInitParser();
  51 +
49 52 xmlListPtr errors;
50 53 xmlDocPtr doc = nmc_parse(BAD_CAST buffer, &errors);
51 54 if (!xmlListEmpty(errors))
@@ -54,6 +57,7 @@ main(UNUSED(int argc), UNUSED(char **argv))
54 57 xmlListDelete(errors);
55 58 xmlSaveFormatFileEnc("-", doc, "UTF-8", 1);
56 59 xmlFreeDoc(doc);
  60 +
57 61 xmlCleanupParser();
58 62
59 63 return result;

0 comments on commit 7e22409

Please sign in to comment.
Something went wrong with that request. Please try again.