From: Ben Pfaff Date: Wed, 25 Apr 2012 03:19:18 +0000 (-0700) Subject: vswitchd: Avoid GCC warning. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fc67a92224a3e913b1d1d9640eaa74f4a4c7cb5d;p=sliver-openvswitch.git vswitchd: Avoid GCC warning. 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 --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 83a83f647..c5a1a568a 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -2049,6 +2049,8 @@ bridge_run(void) } else if (!ovsdb_idl_has_lock(idl)) { return; } + } else { + database_changed = false; } cfg = ovsrec_open_vswitch_first(idl);