summaryrefslogtreecommitdiffstats
path: root/edify
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-12-18 11:50:23 -0800
committerDan Albert <danalbert@google.com>2014-12-18 22:50:08 +0000
commit7279f97ab492094810a4bc88f81d53b5e8c4bb74 (patch)
treedc865a1ecc9d3517dd6e4d73c7ac500fb9774be7 /edify
parentc43b17f0adac1092e221ce6166ca8bc464090525 (diff)
downloadbootable_recovery-7279f97ab492094810a4bc88f81d53b5e8c4bb74.zip
bootable_recovery-7279f97ab492094810a4bc88f81d53b5e8c4bb74.tar.gz
bootable_recovery-7279f97ab492094810a4bc88f81d53b5e8c4bb74.tar.bz2
Remove an uninitialized value.
The assignment of this value was removed in 0d32f25, but the declaration was still there and still tested. Clang issues a warning for this. Change-Id: I748bfb8b4f78ceed1c1b5b1bb80cb4e873e4facc
Diffstat (limited to 'edify')
-rw-r--r--edify/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/edify/main.c b/edify/main.c
index b3fad53..b1baa0b 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;