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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue