From 7c4a9e6c928f4190262e3e735c7db2fa7c5aa466 Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Thu, 6 Jul 2017 15:50:56 -0700 Subject: [PATCH] Initialize a variable in ldb to make code analysis tool happy Summary: Closes https://github.com/facebook/rocksdb/pull/2529 Differential Revision: D5378787 Pulled By: siying fbshipit-source-id: 801ecacc2804f77cb3c9e5e665829e439db68800 --- tools/ldb_cmd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ldb_cmd.cc b/tools/ldb_cmd.cc index d9beaae5b..597e9bc21 100644 --- a/tools/ldb_cmd.cc +++ b/tools/ldb_cmd.cc @@ -1086,7 +1086,7 @@ CreateColumnFamilyCommand::CreateColumnFamilyCommand( } void CreateColumnFamilyCommand::DoCommand() { - ColumnFamilyHandle* new_cf_handle; + ColumnFamilyHandle* new_cf_handle = nullptr; Status st = db_->CreateColumnFamily(options_, new_cf_name_, &new_cf_handle); if (st.ok()) { fprintf(stdout, "OK\n");