From: Ben Pfaff Date: Thu, 2 Sep 2010 17:06:42 +0000 (-0700) Subject: ovsdb: Fix bug in "wait" command implementation. X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=1089aab7136612acb86cdcd638d7d2261311531a ovsdb: Fix bug in "wait" command implementation. The declaration of "error" that this commit removes shadowed an outer local declaration of "error", which caused errors detected by this code not to be propagated up to the outer level. Found with GCC -Wshadow. --- diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 5b6762f07..7ce9a3f50 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution.c @@ -629,7 +629,6 @@ ovsdb_execute_wait(struct ovsdb_execution *x, struct ovsdb_parser *parser, /* Parse "rows" into 'expected'. */ ovsdb_row_hash_init(&expected, &columns); for (i = 0; i < rows->u.array.n; i++) { - struct ovsdb_error *error; struct ovsdb_row *row; row = ovsdb_row_create(table);