Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Assign getter_doc only for non-null prop_doc
  • Loading branch information
sizmailov committed May 26, 2022
commit 36fc1b09e78bb954b9f2d49e214749bac30e5085
4 changes: 3 additions & 1 deletion Objects/descrobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,9 @@ property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset,
prop_doc = NULL;
Py_DECREF(Py_None);
}
self->getter_doc = 1;
if (prop_doc != NULL){
self->getter_doc = 1;
}
}

Comment thread
sizmailov marked this conversation as resolved.
/* At this point `prop_doc` is either NULL or
Expand Down