From: Danny Al-Gaaf Date: Tue, 24 Mar 2015 08:50:47 +0000 (+0100) Subject: ReplicatedBackend.cc: init 'Message *commit' to NULL X-Git-Tag: v9.0.1~128^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc50f43572e9cc222521bfdc4b02efcd7890c645;p=ceph.git ReplicatedBackend.cc: init 'Message *commit' to NULL Init variable with NULL to make sure it crashes in error case (would be a bug) if NDEBUG disable the assert() call. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osd/ReplicatedBackend.cc b/src/osd/ReplicatedBackend.cc index b48702590971..48bface83ff5 100644 --- a/src/osd/ReplicatedBackend.cc +++ b/src/osd/ReplicatedBackend.cc @@ -1267,7 +1267,7 @@ void ReplicatedBackend::sub_op_modify_commit(RepModifyRef rm) get_parent()->update_last_complete_ondisk(rm->last_complete); Message *m = rm->op->get_req(); - Message *commit; + Message *commit = NULL; if (m->get_type() == MSG_OSD_SUBOP) { // doesn't have CLIENT SUBOP feature ,use Subop MOSDSubOpReply *reply = new MOSDSubOpReply(