diff mbox

Fix uninitialized pointer in debug.cc:dout_handle_daemonize().

Message ID 20101213133836.GH4783@daedalus.cslab.ece.ntua.gr (mailing list archive)
State New, archived
Headers show

Commit Message

Vangelis Koukis Dec. 13, 2010, 1:38 p.m. UTC
None
diff mbox

Patch

diff --git a/src/common/debug.cc b/src/common/debug.cc
index 10cd6ce..88780f0 100644
--- a/src/common/debug.cc
+++ b/src/common/debug.cc
@@ -38,6 +38,11 @@  void _dout_open_log()
 int dout_handle_daemonize()
 {
   Mutex::Locker l(_dout_lock);
+
+  if (_dout_need_open)
+       _dout_open_log();
+
+  assert(_doss);
   _doss->handle_stdout_closed();
   _doss->handle_stderr_closed();
   return _doss->handle_pid_change();