fix *serious* (new) bug in evalfile: forgot to initialize s!!!

This commit is contained in:
Guido van Rossum 1992-08-19 16:40:53 +00:00
parent 7268c93c55
commit 2b81dc9c00

View file

@ -229,6 +229,7 @@ builtin_execfile(self, v)
"execfile arguments must be filename[,dict[,dict]]");
return NULL;
}
s = getstringvalue(str);
if (strlen(s) != getstringsize(str)) {
err_setstr(ValueError, "embedded '\\0' in string arg");
return NULL;