[Python-checkins] r79673 - python/trunk/Modules/posixmodule.c

brian.curtin python-checkins at python.org
Sat Apr 3 15:58:39 CEST 2010


Author: brian.curtin
Date: Sat Apr  3 15:58:39 2010
New Revision: 79673

Log:
Add missing return statement in an error condition.


Modified:
   python/trunk/Modules/posixmodule.c

Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c	(original)
+++ python/trunk/Modules/posixmodule.c	Sat Apr  3 15:58:39 2010
@@ -4095,7 +4095,7 @@
 	if (sig == CTRL_C_EVENT || sig == CTRL_BREAK_EVENT) {
 		if (GenerateConsoleCtrlEvent(sig, pid) == 0) {
 			err = GetLastError();
-			PyErr_SetFromWindowsErr(err);
+			return PyErr_SetFromWindowsErr(err);
 		}
 		else
 			Py_RETURN_NONE;


More information about the Python-checkins mailing list