Removed extraneous fclose() in case of .pyc file argument
This commit is contained in:
parent
234fd7e4bb
commit
e00637bdcf
|
@ -202,7 +202,7 @@ run_script(fp, filename)
|
|||
ext = filename + strlen(filename) - 4;
|
||||
if ( strcmp(ext, ".pyc") == 0 ) {
|
||||
/* Try to run a pyc file. First, re-open in binary */
|
||||
fclose(fp);
|
||||
/* Don't close, done in main: fclose(fp); */
|
||||
if( (fp = fopen(filename, "rb")) == NULL ) {
|
||||
fprintf(stderr, "python: Can't reopen .pyc file\n");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue