From: Sage Weil Date: Sat, 29 Sep 2012 01:16:49 +0000 (-0700) Subject: mon: fix uninit var warning in session startup X-Git-Tag: v0.54~179 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7827c566ad46d3b327bf2eed1fc4a59cc8b895cb;p=ceph.git mon: fix uninit var warning in session startup This is a false positive; just init the var. CID 717198: Uninitialized scalar variable (UNINIT) At (18): Using uninitialized value "auid" when calling "MonCaps::set_auid(uint64_t)". [hide details] Signed-off-by: Sage Weil --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index a580a83c90a1..17191301003d 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -384,7 +384,7 @@ bool AuthMonitor::prep_auth(MAuth *m, bool paxos_writable) } try { - uint64_t auid; + uint64_t auid = 0; if (start) { // new session