summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-05 22:53:26 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-05 22:53:26 +0100
commit6bec0e51b0974d5646bab925299ea37c221b47e3 (patch)
tree5658e61fff58024219ed80115a9c79893c5a12c8
parentam 538d7d83: Merge "Fix missing #includes in bootable/recovery." (diff)
parentMerge "Remove an uninitialized value." (diff)
downloadandroid_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar.gz
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar.bz2
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar.lz
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar.xz
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.tar.zst
android_bootable_recovery-6bec0e51b0974d5646bab925299ea37c221b47e3.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;