]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix debug code
authorKern Sibbald <kern@sibbald.com>
Sun, 24 Jun 2007 07:48:17 +0000 (07:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 24 Jun 2007 07:48:17 +0000 (07:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5074 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/console/console.cpp

index 269c423066f723d066d9731a3101048760ed8990..e62a0d6d4327242caa068d12db832f0825109387 100644 (file)
@@ -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: