From 7921b4dc9ff087b1bc11dc90d00bb2760585258b Mon Sep 17 00:00:00 2001 From: paulc Date: Sun, 3 Jul 2005 10:51:19 +0000 Subject: [PATCH] Minor problems exposed by VC++ git-svn-id: http://yate.null.ro/svn/yate/trunk@425 acf43c95-373e-0410-b603-e72c3f656dc1 --- engine/Channel.cpp | 2 +- engine/Engine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/Channel.cpp b/engine/Channel.cpp index dd1ac2a5..5ae075f2 100644 --- a/engine/Channel.cpp +++ b/engine/Channel.cpp @@ -837,7 +837,7 @@ bool Router::route() DDebug(m_driver,DebugAll,"Routing thread for '%s' [%p]",m_id.c_str(),this); String tmp(m_msg->getValue("callto")); - bool ok = tmp; + bool ok = !tmp.null(); if (ok) m_msg->retValue() = tmp; else diff --git a/engine/Engine.cpp b/engine/Engine.cpp index c1648890..028b468a 100644 --- a/engine/Engine.cpp +++ b/engine/Engine.cpp @@ -626,7 +626,7 @@ bool Engine::loadPlugin(const char* file) bool Engine::loadPluginDir(const String& relPath) { #ifdef DEBUG - Debugger debug("Engine::loadPluginDir('%s')",path.c_str()); + Debugger debug("Engine::loadPluginDir('%s')",relPath.c_str()); #endif bool defload = s_cfg.getBoolValue("general","modload",true); String path = s_modpath;