[asterisk-commits] trunk r9757 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Feb 13 10:43:40 MST 2006


Author: russell
Date: Mon Feb 13 11:43:38 2006
New Revision: 9757

URL: http://svn.digium.com/view/asterisk?rev=9757&view=rev
Log:
remove unneeded var (issue #6466)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=9757&r1=9756&r2=9757&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Feb 13 11:43:38 2006
@@ -9343,7 +9343,7 @@
 int function_sippeer(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
 {
 	struct sip_peer *peer;
-	char *peername = data, *colname;
+	char *colname;
 	char iabuf[INET_ADDRSTRLEN];
 
 	if ((colname = strchr(data, ':')))
@@ -9351,7 +9351,7 @@
 	else
 		colname = "ip";
 
-	if (!(peer = find_peer(peername, NULL, 1)))
+	if (!(peer = find_peer(data, NULL, 1)))
 		return -1;
 
 	if (!strcasecmp(colname, "ip")) {



More information about the asterisk-commits mailing list