aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 85dd445..4e368f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -9,8 +9,12 @@ int main(int argc, char *argv[])
}
struct lyn lyn = lyn_create();
+ if (lyn_init(&lyn)) {
+ lyn_destroy(&lyn);
+ return -1;
+ }
+
int ret = lyn_eval_file(&lyn, argv[1]);
lyn_destroy(&lyn);
-
return ret;
}