Correct error in 1032f111d0

Thanks to Jacques Lucke for spotting.
This commit is contained in:
Campbell Barton 2022-03-11 22:34:59 +11:00
parent f4c8b4eb3e
commit e20fe18706
1 changed files with 1 additions and 1 deletions

View File

@ -5908,7 +5908,7 @@ static PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *dat
}
else {
data_ch = (flag & PROP_THICK_WRAP) ? (char *)data : *(char **)data;
data_ch_len = data_ch ? 0 : strlen(data_ch);
data_ch_len = data_ch ? strlen(data_ch) : 0;
}
if (UNLIKELY(data_ch == NULL)) {