diff Python/bltinmodule.c @ 8560:46fd630dce63 legacy-trunk

In raw_input(prompt), make sure that str(prompt) really a string object before using it.
author Guido van Rossum <guido@python.org>
date Fri, 26 Jun 1998 18:25:38 +0000
parents 754de621e8b3
children 8973e7085cf4
line wrap: on
line diff
--- a/Python/bltinmodule.c	Fri Jun 26 15:53:50 1998 +0000
+++ b/Python/bltinmodule.c	Fri Jun 26 18:25:38 1998 +0000
@@ -1191,6 +1191,8 @@
 			if (po == NULL)
 				return NULL;
 			prompt = PyString_AsString(po);
+			if (prompt == NULL)
+				return NULL;
 		}
 		else {
 			po = NULL;