From 25cb7002fc92a2380856699e352da52fe8f37966 Mon Sep 17 00:00:00 2001 From: marian Date: Mon, 28 Jan 2008 13:20:26 +0000 Subject: [PATCH] Fixed string length check when assigning to boolean to avoid compiler warning. git-svn-id: http://yate.null.ro/svn/yate/trunk@1687 acf43c95-373e-0410-b603-e72c3f656dc1 --- libs/yjingle/jgengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/yjingle/jgengine.cpp b/libs/yjingle/jgengine.cpp index 09832bb6..34e8c981 100644 --- a/libs/yjingle/jgengine.cpp +++ b/libs/yjingle/jgengine.cpp @@ -89,7 +89,7 @@ bool JGEngine::receive() // Check if it's a message from a user with resource else if (event->type() == JBEvent::Message) { JabberID from(event->from()); - checkSession = from.resource(); + checkSession = !from.resource().null(); } // Add event to the appropriate session if (checkSession) {