From fc67a92224a3e913b1d1d9640eaa74f4a4c7cb5d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 24 Apr 2012 20:19:18 -0700 Subject: [PATCH] vswitchd: Avoid GCC warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- vswitchd/bridge.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.0