Skip to content

Commit 2290b7e

Browse files
committed
init return value
1 parent 70abf72 commit 2290b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/funcobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static PyObject *
864864
func_get_annotations(PyObject *self, void *Py_UNUSED(ignored))
865865
{
866866
PyFunctionObject *op = _PyFunction_CAST(self);
867-
PyObject *d;
867+
PyObject *d = NULL;
868868
Py_BEGIN_CRITICAL_SECTION(self);
869869
if (op->func_annotations == NULL &&
870870
(op->func_annotate == NULL || !PyCallable_Check(op->func_annotate))) {

0 commit comments

Comments
 (0)