X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xml.c;h=c2213ca2c71fdfd55568772954d42d85f770c852;hb=88a3605446744969abe6f193a7bc20e62d5aa555;hp=755ed5922b7dab998fab95fd2250f93069a76538;hpb=c0ecfba627c1d6c3f46d59bd4e5e6f883a494dc4;p=palacios.git 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) {