commit | a5d63956c419f01a9e57414c23d3ded3a16e0f8a | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Mon Jan 05 21:40:11 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Jan 05 21:40:11 2015 +0000 |
tree | a02cc873b1c4be2d131194b857bc3cd9a9c26932 | |
parent | 538d7d838d82e29c738145431aa64c587dc84943 [diff] | |
parent | 7279f97ab492094810a4bc88f81d53b5e8c4bb74 [diff] |
Merge "Remove an uninitialized value."
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 @@ 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;