From: Patrick G. Bridges Date: Wed, 6 Oct 2010 18:04:26 +0000 (-0500) Subject: Added more error checking from on what is returned by ezXML to not generate image... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=9800aba2ad371b0114b6fbd328f56598e92746ae Added more error checking from on what is returned by ezXML to not generate image for incomplete parse. --- diff --git a/utils/guest_creator/main.c b/utils/guest_creator/main.c index a3b427b..15b85ce 100644 --- a/utils/guest_creator/main.c +++ b/utils/guest_creator/main.c @@ -77,6 +77,10 @@ int main(int argc, char ** argv) { printf("Input: [%s] ==>> Output: [%s]\n", infile, outfile); ezxml_t cfg_input = ezxml_parse_file(infile); + if (strcmp("", ezxml_error(cfg_input)) != 0) { + printf("%s\n", ezxml_error(cfg_input)); + return -1; + } if (cfg_input == NULL) { printf("Could not open configuration input file: %s\n", infile);