X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fxml.c;fp=src%2Fxml.c;h=f7d694d04e9557d0641ecfb88b970b9ed91d3258;hb=93cf87b7baf5093c729f74f7e1c4be2a94880dbe;hp=e29030c69b59b4f199ebcf876cc4cfaf330d3ab3;hpb=b68497e4e70d78979ed47cf0bfaab6bf70c6a2ae;p=wimlib diff --git a/src/xml.c b/src/xml.c index e29030c6..f7d694d0 100644 --- a/src/xml.c +++ b/src/xml.c @@ -1388,6 +1388,8 @@ wimlib_get_image_property(const WIMStruct *wim, int image, const xmlChar *name; const tchar *value; + if (!property_name || !*property_name) + return NULL; if (tstr_get_utf8(property_name, &name)) return NULL; value = get_image_property(wim, image, name, NULL);