diff options
author | Doug Zongker <dougz@android.com> | 2009-06-12 02:21:44 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-06-12 18:40:37 +0200 |
commit | 8edb00c990e563e6f91b278a212f2edf877cf763 (patch) | |
tree | dcd6c0fb2ce82fcb5b43ed47dc74879cfe71b647 /updater/updater.c | |
parent | fix sim build in donut, too (diff) | |
download | android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.gz android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.bz2 android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.lz android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.xz android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.zst android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/updater.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/updater/updater.c b/updater/updater.c index aa03803a8..09776256b 100644 --- a/updater/updater.c +++ b/updater/updater.c @@ -80,10 +80,11 @@ int main(int argc, char** argv) { // Parse the script. Expr* root; + int error_count = 0; yy_scan_string(script); - int error = yyparse(&root); - if (error != 0) { - fprintf(stderr, "%d parse errors\n", error); + int error = yyparse(&root, &error_count); + if (error != 0 || error_count > 0) { + fprintf(stderr, "%d parse errors\n", error_count); return 6; } |