summaryrefslogtreecommitdiff
path: root/core/cescal.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cescal.c')
-rw-r--r--core/cescal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/cescal.c b/core/cescal.c
index 0121389..c41f7cd 100644
--- a/core/cescal.c
+++ b/core/cescal.c
@@ -29,8 +29,10 @@ compile(const char *pathname)
return -1;
}
- if (parser_parse(&st) < 0) {
- return -1;
+ for (int i = 0; i < 2; ++i) {
+ if (parser_parse(&st) < 0) {
+ return -1;
+ }
}
state_close(&st);