summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-05 22:58:49 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-05 22:58:49 +0100
commit1b103c4c0d73e154aa8de658d005cf15e3b89111 (patch)
treed6422634eb26b61249fe048eae7cd3380f099700
parentam 6bb8f476: am 538d7d83: Merge "Fix missing #includes in bootable/recovery." (diff)
parentam a5d63956: Merge "Remove an uninitialized value." (diff)
downloadandroid_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar.gz
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar.bz2
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar.lz
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar.xz
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.tar.zst
android_bootable_recovery-1b103c4c0d73e154aa8de658d005cf15e3b89111.zip
-rw-r--r--edify/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/edify/main.c b/edify/main.c
index b3fad53b8..b1baa0b13 100644
--- a/edify/main.c
+++ b/edify/main.c
@@ -25,13 +25,12 @@ extern int yyparse(Expr** root, int* error_count);
int expect(const char* expr_str, const char* expected, int* errors) {
Expr* e;
- int error;
char* result;
printf(".");
int error_count = parse_string(expr_str, &e, &error_count);
- if (error > 0 || error_count > 0) {
+ if (error_count > 0) {
printf("error parsing \"%s\" (%d errors)\n",
expr_str, error_count);
++*errors;