From: Sage Weil Date: Wed, 21 Aug 2013 05:44:43 +0000 (-0700) Subject: ceph-monstore-tool: shut up coverity X-Git-Tag: v0.68~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9242d01cc007f44f5be4e7138e9019234e61d6fc;p=ceph.git ceph-monstore-tool: shut up coverity Signed-off-by: Sage Weil --- diff --git a/src/tools/ceph-monstore-tool.cc b/src/tools/ceph-monstore-tool.cc index 7d9ea628e9fd..8f294c4a4e34 100644 --- a/src/tools/ceph-monstore-tool.cc +++ b/src/tools/ceph-monstore-tool.cc @@ -214,6 +214,7 @@ int main(int argc, char **argv) { } else if (cmd == "compact") { st.compact(); } else if (cmd == "getmonmap") { + assert(fd >= 0); if (!store_path.size()) { std::cerr << "need mon store path" << std::endl; std::cerr << desc << std::endl;