GCC 4.4.5 issues the following warning without this patch:
bridge.c: In function ‘bridge_run’:
bridge.c:2032: error: ‘database_changed’ may be used uninitialized in
this function
I think it's unnecessary, but it doesn't hurt to always initialize this
variable.
Signed-off-by: Ben Pfaff <blp@nicira.com>
} else if (!ovsdb_idl_has_lock(idl)) {
return;
}
+ } else {
+ database_changed = false;
}
cfg = ovsrec_open_vswitch_first(idl);