aboutsummaryrefslogtreecommitdiff
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index d89c412..6b0909e 100644
--- a/driver.c
+++ b/driver.c
@@ -22,8 +22,9 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
- exec_stmt(ast_root);
- env_print();
+ Env *env = NULL;
+ exec_stmt(&env, ast_root);
+ env_print(env);
free_ast(ast_root);
return EXIT_SUCCESS;