summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-06-19 13:57:27 (GMT)
committerGuido van Rossum <guido@python.org>1992-06-19 13:57:27 (GMT)
commit5dc8eb0914a6fcea604a6626af9e63120e84b527 (patch)
treef3dd21037f78658de0ae502b2cfe17a1186ec421 /Python/sysmodule.c
parent710e1df5852f07271e2e6a9f9c0acbc698acfd56 (diff)
downloadcpython-5dc8eb0914a6fcea604a6626af9e63120e84b527.zip
cpython-5dc8eb0914a6fcea604a6626af9e63120e84b527.tar.gz
cpython-5dc8eb0914a6fcea604a6626af9e63120e84b527.tar.bz2
sysmodule.c: calling sys.settrace() or sys.setprofile() without
arguments crashed in INCREF() calls which should be XINCREF() calls. timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by Jaap Vermeulen xxobject.c: include modsupport.h
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index a12595c..3a6516f 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -102,7 +102,7 @@ sys_settrace(self, args)
if (args == None)
args = NULL;
else
- INCREF(args);
+ XINCREF(args);
XDECREF(sys_trace);
sys_trace = args;
INCREF(None);
@@ -117,7 +117,7 @@ sys_setprofile(self, args)
if (args == None)
args = NULL;
else
- INCREF(args);
+ XINCREF(args);
XDECREF(sys_profile);
sys_profile = args;
INCREF(None);