[svn-commits] eliel: branch group/appdocsxml r137167 - /team/group/appdocsxml/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Aug 10 20:01:23 CDT 2008


Author: eliel
Date: Sun Aug 10 20:01:23 2008
New Revision: 137167

URL: http://svn.digium.com/view/asterisk?view=rev&rev=137167
Log:
We must check for the 'OR', or it will crash if node = NULL while trying to
check !node->AST_XML_CHILD.


Modified:
    team/group/appdocsxml/main/pbx.c

Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=137167&r1=137166&r2=137167
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Sun Aug 10 20:01:23 2008
@@ -2823,7 +2823,7 @@
 		}
 	}
 
-	if (!node && !node->AST_XML_CHILD) {
+	if (!node || !node->AST_XML_CHILD) {
 		/* We didn't find the application documentation for the specified language,
 		so, try to load documentation for any language */
 		node = ast_xml_get_root(documentation_tree);




More information about the svn-commits mailing list