use zero initializers instead of memset(), also change PointerRNA_NULL from an extern into a define.

This commit is contained in:
2010-11-23 08:44:21 +00:00
parent 225be0cf30
commit ce2295999e
12 changed files with 22 additions and 45 deletions

View File

@@ -1156,8 +1156,7 @@ static int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyOb
else {
/* data==NULL, assign to RNA */
if(value == Py_None) {
PointerRNA valueptr;
memset(&valueptr, 0, sizeof(valueptr));
PointerRNA valueptr= {{0}};
RNA_property_pointer_set(ptr, prop, valueptr);
}
else if(RNA_struct_is_a(param->ptr.type, ptype)) {