From: Guido van Rossum Date: Fri, 26 Jun 1998 18:25:38 +0000 (+0000) Subject: In raw_input(prompt), make sure that str(prompt) really a string X-Git-Tag: v1.5.2a1~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9b5208e903a7149a3c5733abbaf7f59f3d7c426;p=python In raw_input(prompt), make sure that str(prompt) really a string object before using it. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 3aba792d00..c894ec5715 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1191,6 +1191,8 @@ builtin_raw_input(self, args) if (po == NULL) return NULL; prompt = PyString_AsString(po); + if (prompt == NULL) + return NULL; } else { po = NULL;