]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw/cls_rgw.cc: init start_key_added with false
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 22 Jul 2013 08:27:41 +0000 (10:27 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 22 Jul 2013 10:58:28 +0000 (12:58 +0200)
Fix for coverity issue:

CID 1049231 (#1 of 1): Uninitialized scalar variable (UNINIT)
  uninit_use: Using uninitialized value "start_key_added".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/cls/rgw/cls_rgw.cc

index de2abe5665b7dbc70804a5fe26787254c7b9e467..6cda4cba5c39fad3c17590bee840b6b5ce367e8e 100644 (file)
@@ -815,7 +815,7 @@ static int bi_log_iterate_entries(cls_method_context_t hctx, const string& marke
   map<string, bufferlist> keys;
   string filter_prefix, end_key;
   bufferlist start_bl;
-  bool start_key_added;
+  bool start_key_added = false;
   uint32_t i = 0;
   string key;