[asterisk-commits] mmichelson: branch mmichelson/npm_fixes r181427 - /team/mmichelson/npm_fixes/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 11 17:12:12 CDT 2009


Author: mmichelson
Date: Wed Mar 11 17:12:09 2009
New Revision: 181427

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=181427
Log:
Remove redundancy in if statement.


Modified:
    team/mmichelson/npm_fixes/main/pbx.c

Modified: team/mmichelson/npm_fixes/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/team/mmichelson/npm_fixes/main/pbx.c?view=diff&rev=181427&r1=181426&r2=181427
==============================================================================
--- team/mmichelson/npm_fixes/main/pbx.c (original)
+++ team/mmichelson/npm_fixes/main/pbx.c Wed Mar 11 17:12:09 2009
@@ -1492,7 +1492,7 @@
 
 	extenstr[0] = '\0';
 
-	if (node && node->exten && node->exten)
+	if (node && node->exten)
 		snprintf(extenstr, sizeof(extenstr), "(%p)", node->exten);
 
 	if (strlen(node->x) > 1) {
@@ -1521,7 +1521,7 @@
 
 	extenstr[0] = '\0';
 
-	if (node && node->exten && node->exten)
+	if (node && node->exten)
 		snprintf(extenstr, sizeof(extenstr), "(%p)", node->exten);
 
 	if (strlen(node->x) > 1) {




More information about the asterisk-commits mailing list