fix(shell/lean.cpp): use temp ios

This commit is contained in:
Soonho Kong 2014-10-21 17:21:48 -07:00
parent 33f18b9454
commit ef60e6abd2

View file

@ -269,7 +269,8 @@ public:
bool ok = true; bool ok = true;
try { try {
environment temp_env(env); environment temp_env(env);
if (!parse_commands(temp_env, ios, input_filename.c_str(), false, num_threads)) { io_state temp_ios(ios);
if (!parse_commands(temp_env, temp_ios, input_filename.c_str(), false, num_threads)) {
ok = false; ok = false;
} }
} catch (lean::exception & ex) { } catch (lean::exception & ex) {