From da36bcaad33f8ae2d5674f9cfccc6eb07f66f65f Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.net>
Date: Tue, 6 Oct 2009 17:15:34 -0400
Subject: [PATCH] [#2006] Add init is_rec variable in ManagerImpl

---
 sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp | 2 +-
 sflphone-common/src/managerimpl.cpp                     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp b/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp
index 7c2ba72c83..adfcd25531 100644
--- a/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp
+++ b/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp
@@ -57,7 +57,7 @@ void AudioZrtpSession::initializeZid (void)
     _debug("    xdg_config %s\n", xdg_config.c_str());
 
     if (XDG_CACHE_HOME != NULL) {
-	std::string xdg_env = std::string (XDG_CACHE_HOME);
+	std::string xdg_env = std::string (XDG_CACHE_HOME) + _zidFilename;
 	_debug("    xdg_env %s\n", xdg_env.c_str());
 	(xdg_env.length() > 0) ? zidCompleteFilename = xdg_env : zidCompleteFilename = xdg_config;
     } else
diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp
index 17c1a2accb..1f98b69241 100644
--- a/sflphone-common/src/managerimpl.cpp
+++ b/sflphone-common/src/managerimpl.cpp
@@ -613,6 +613,7 @@ ManagerImpl::offHoldCall (const CallID& call_id)
     bool returnValue, is_rec;
     std::string codecName;
 
+    is_rec = false;
 
     _debug ("ManagerImpl::offHoldCall(%s)\n", call_id.c_str());
 
@@ -2194,8 +2195,6 @@ ManagerImpl::createSettingsPath (void)
 
     xdg_config = std::string (HOMEDIR) + DIR_SEPARATOR_STR + ".config" + DIR_SEPARATOR_STR + PROGDIR;
 
-    //_path = std::string (HOMEDIR) + DIR_SEPARATOR_STR + "." + PROGDIR;
-
     if (XDG_CONFIG_HOME != NULL) {
         xdg_env = std::string (XDG_CONFIG_HOME);
         (xdg_env.length() > 0) ? _path = xdg_env
@@ -2507,6 +2506,7 @@ ManagerImpl::getCurrentCodecName (const CallID& id)
     VoIPLink* link = getAccountLink (accountid);
     Call* call = link->getCall(id);
 
+
     if(call->getState() != Call::Active)
 	return "";
     else
-- 
GitLab