Commit 65187c07 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

xmlent: check for NULL in test harness

parent 3514a4ce
......@@ -51,6 +51,12 @@ static void encode (const char *in, const char *out)
printf ("\"%s\" -> \"%s\" ?\n", in, out);
buf = vlc_xml_encode (in);
if (buf == NULL)
puts(" ERROR: got NULL");
if (strcmp (buf, out))
printf (" ERROR: got \"%s\"\n", buf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment