]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use provided variable for name instead of one in the structure since the structure...
authorJoshua Colp <jcolp@digium.com>
Tue, 30 Jan 2007 15:39:09 +0000 (15:39 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 30 Jan 2007 15:39:09 +0000 (15:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 2a20b4d7c6ae5303b0e1d80f0d4b609c8b9b293e..d3c611df88ea8c323870414587c56fb8022d94b6 100644 (file)
@@ -16011,7 +16011,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                if (realtime) {
                        rpeerobjs++;
                        if (option_debug > 2)
-                               ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", peer->name, rpeerobjs);
+                               ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", name, rpeerobjs);
                } else
                        speerobjs++;
                ASTOBJ_INIT(peer);