diff Python/sysmodule.c @ 901:fea3f594df77 legacy-trunk

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
author Guido van Rossum <guido@python.org>
date Fri, 19 Jun 1992 13:57:27 +0000
parents ba4ec13c0f9f
children a1ce5a949828
line wrap: on
line diff
--- a/Python/sysmodule.c	Fri Jun 12 10:39:36 1992 +0000
+++ b/Python/sysmodule.c	Fri Jun 19 13:57:27 1992 +0000
@@ -102,7 +102,7 @@
 	if (args == None)
 		args = NULL;
 	else
-		INCREF(args);
+		XINCREF(args);
 	XDECREF(sys_trace);
 	sys_trace = args;
 	INCREF(None);
@@ -117,7 +117,7 @@
 	if (args == None)
 		args = NULL;
 	else
-		INCREF(args);
+		XINCREF(args);
 	XDECREF(sys_profile);
 	sys_profile = args;
 	INCREF(None);