[asterisk-commits] russell: branch 1.8 r302837 - /branches/1.8/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 19 17:56:52 CST 2011


Author: russell
Date: Wed Jan 19 17:56:48 2011
New Revision: 302837

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=302837
Log:
Only check container count if it exists.

Modified:
    branches/1.8/main/manager.c

Modified: branches/1.8/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/manager.c?view=diff&rev=302837&r1=302836&r2=302837
==============================================================================
--- branches/1.8/main/manager.c (original)
+++ branches/1.8/main/manager.c Wed Jan 19 17:56:48 2011
@@ -4787,7 +4787,7 @@
 	struct ast_str *buf;
 	int i;
 
-	if (!ao2_container_count(sessions) && AST_RWLIST_EMPTY(&manager_hooks)) {
+	if (!(sessions && ao2_container_count(sessions)) && AST_RWLIST_EMPTY(&manager_hooks)) {
 		return 0;
 	}
 	




More information about the asterisk-commits mailing list