mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
In raw_input(prompt), make sure that str(prompt) really a string
object before using it.
This commit is contained in:
parent
1bb26872f5
commit
d9b5208e90
1 changed files with 2 additions and 0 deletions
|
@ -1191,6 +1191,8 @@ builtin_raw_input(self, args)
|
||||||
if (po == NULL)
|
if (po == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
prompt = PyString_AsString(po);
|
prompt = PyString_AsString(po);
|
||||||
|
if (prompt == NULL)
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
po = NULL;
|
po = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue