--enable-dev-mode is your friend :-)
authorKevin P. Fleming <kpfleming@digium.com>
Sat, 2 Aug 2008 13:21:16 +0000 (13:21 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sat, 2 Aug 2008 13:21:16 +0000 (13:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135302 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 0b0f9d3..0f96280 100644 (file)
@@ -4166,7 +4166,7 @@ static int handle_keep_alive_message(struct skinny_req *req, struct skinnysessio
 
 static int handle_register_message(struct skinny_req *req, struct skinnysession *s)
 {
-       struct skinny_device *d;
+       struct skinny_device *d = s->device;
        char name[16];
        int res;
 
@@ -4185,8 +4185,6 @@ static int handle_register_message(struct skinny_req *req, struct skinnysession
        }
        ast_verb(3, "Device '%s' successfully registered\n", name);
        
-       d = s->device;
-
        if (!(req = req_alloc(sizeof(struct register_ack_message), REGISTER_ACK_MESSAGE)))
                return -1;