mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
fix *serious* (new) bug in evalfile: forgot to initialize s!!!
This commit is contained in:
parent
7268c93c55
commit
2b81dc9c00
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ builtin_execfile(self, v)
|
||||||
"execfile arguments must be filename[,dict[,dict]]");
|
"execfile arguments must be filename[,dict[,dict]]");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
s = getstringvalue(str);
|
||||||
if (strlen(s) != getstringsize(str)) {
|
if (strlen(s) != getstringsize(str)) {
|
||||||
err_setstr(ValueError, "embedded '\\0' in string arg");
|
err_setstr(ValueError, "embedded '\\0' in string arg");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue