summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-05 22:40:11 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-05 22:40:11 +0100
commita5d63956c419f01a9e57414c23d3ded3a16e0f8a (patch)
treea02cc873b1c4be2d131194b857bc3cd9a9c26932
parentMerge "Fix missing #includes in bootable/recovery." (diff)
parentRemove an uninitialized value. (diff)
downloadandroid_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar.gz
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar.bz2
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar.lz
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar.xz
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.tar.zst
android_bootable_recovery-a5d63956c419f01a9e57414c23d3ded3a16e0f8a.zip
Diffstat (limited to '')
-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;