X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxml.c;h=dbce8da606e1ae971680a2e2bf1cc37119bf30bd;hp=f7d694d04e9557d0641ecfb88b970b9ed91d3258;hb=130b09a8d787dd9ff0e00281052a8dacee272d5a;hpb=93cf87b7baf5093c729f74f7e1c4be2a94880dbe diff --git a/src/xml.c b/src/xml.c index f7d694d0..dbce8da6 100644 --- a/src/xml.c +++ b/src/xml.c @@ -1425,6 +1425,9 @@ wimlib_set_image_property(WIMStruct *wim, int image, const tchar *property_name, const xmlChar *name; int ret; + if (!property_name || !*property_name) + return WIMLIB_ERR_INVALID_PARAM; + ret = tstr_get_utf8(property_name, &name); if (ret) return ret;