[asterisk-commits] eliel: branch group/appdocsxml r151016 - /team/group/appdocsxml/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Oct 18 11:46:17 CDT 2008


Author: eliel
Date: Sat Oct 18 11:46:17 2008
New Revision: 151016

URL: http://svn.digium.com/view/asterisk?view=rev&rev=151016
Log:
It is not needed to check if 'node' is null, we are already checking it before calling
this function.

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=151016&r1=151015&r2=151016
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Sat Oct 18 11:46:17 2008
@@ -3181,7 +3181,7 @@
 
 /*! \internal
  *  \brief Setup postbr to be used while wrapping the text. 
- *         Add to postbr array all the spaces and tabs at the beginning of the line.
+ *         Add to postbr array all the spaces and tabs at the beginning of text.
  *  \param postbr output array. 
  *  \param len array length.
  *  \param text Text with format string before the actual string.
@@ -3558,9 +3558,6 @@
 {
 	ast_xml_node *node = fixnode;
 
-	if (!node || !node->AST_XML_CHILD) {
-		return 0;
-	}
 	node = node->AST_XML_CHILD;
 	while (node) {
 		if (!strcasecmp((char *)node->AST_XML_NAME, "argument")) {




More information about the asterisk-commits mailing list