Commit 967a0e30 authored by lrn@chromium.org's avatar lrn@chromium.org

Use the file opened from argv[1] in preparser-process.cc

Review URL: http://codereview.chromium.org/5612006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5948 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e8689840
......@@ -193,8 +193,8 @@ int main(int argc, char* argv[]) {
FILE* input = stdin;
if (argc > 1) {
char* arg = argv[1];
FILE* file = fopen(arg, "rb");
if (!file) return EXIT_FAILURE;
input = fopen(arg, "rb");
if (input == NULL) return EXIT_FAILURE;
}
int status = 0;
do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment