From: Kern Sibbald Date: Sun, 24 Jun 2007 07:48:17 +0000 (+0000) Subject: Fix debug code X-Git-Tag: Release-7.0.0~6087 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=470404d508195a7a4bc82d30b9cd6c23a535cbfc;p=bacula%2Fbacula Fix debug code git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5074 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 269c423066..e62a0d6d43 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -611,14 +611,15 @@ int Console::read() m_messages_pending = false; } } + m_sock->msg[0] = 0; stat = m_sock->recv(); if (stat >= 0) { + if (mainWin->m_commDebug) Pmsg1(000, "got: %s\n", m_sock->msg); if (m_at_prompt) { display_text("\n"); m_at_prompt = false; m_at_main_prompt = false; } - if (mainWin->m_commDebug) Pmsg1(000, "got: %s", m_sock->msg); } switch (m_sock->msglen) { case BNET_MSGS_PENDING: