Fix #115046: Crash updating string custom property UI data

`PyArg_ParseTupleAndKeywords` does not initialize variable corresponding
to optional arguments that aren't passed by Python. Thanks to Germano for
initial investigation.
This commit is contained in:
Hans Goudey
2023-12-22 09:16:19 -05:00
parent 239d3bb04b
commit 0f2e534674
@@ -537,7 +537,7 @@ static bool idprop_ui_data_update_string(IDProperty *idprop, PyObject *args, PyO
{
const char *rna_subtype = nullptr;
const char *description = nullptr;
const char *default_value;
const char *default_value = nullptr;
const char *kwlist[] = {"default", "subtype", "description", nullptr};
if (!PyArg_ParseTupleAndKeywords(args,
kwargs,