X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xml.c;h=c2213ca2c71fdfd55568772954d42d85f770c852;hp=755ed5922b7dab998fab95fd2250f93069a76538;hb=88a3605446744969abe6f193a7bc20e62d5aa555;hpb=d775bbfa668ce9968bacc0e4257cf86e5ab88e90 diff --git a/palacios/src/palacios/vmm_xml.c b/palacios/src/palacios/vmm_xml.c index 755ed59..c2213ca 100644 --- a/palacios/src/palacios/vmm_xml.c +++ b/palacios/src/palacios/vmm_xml.c @@ -516,6 +516,10 @@ static struct v3_xml * parse_str(char * buf, size_t len) { char ** attr; int attr_idx; + if (!buf) { + return NULL; + } + root->str_ptr = buf; if (len == 0) {