summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-08-29 20:25:46 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-08-29 20:25:46 (GMT)
commitd94c28e467cc550cc09d082eb8bd078e4f2df2e4 (patch)
tree4ef7166f9a84b89885cf4b9d2a4e9f8f9edb0f59
parentafb76320abd7d79844101d130a0421231c7de7f3 (diff)
downloadcpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.zip
cpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.tar.gz
cpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.tar.bz2
SF #561244: micro optimizations, builtins cannot be NULL, so use Py_INCREF
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 90cd952..c65ca40 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -287,7 +287,7 @@ PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals,
}
}
else
- Py_XINCREF(builtins);
+ Py_INCREF(builtins);
f->f_builtins = builtins;
Py_XINCREF(back);
f->f_back = back;