Make chan_iax2.c compile again on older gcc. Remember definitions must come first
authorJames Golovich <james@gnuinter.net>
Fri, 17 Sep 2004 13:58:38 +0000 (13:58 +0000)
committerJames Golovich <james@gnuinter.net>
Fri, 17 Sep 2004 13:58:38 +0000 (13:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 6d9c2f4..b31840d 100755 (executable)
@@ -4990,9 +4990,9 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
        int minivid = 0;
        unsigned int ts;
        char empty[32]="";              /* Safety measure */
-       dblbuf[0] = 0;  /* Keep GCC from whining */
        struct iax_frame *duped_fr;
 
+       dblbuf[0] = 0;  /* Keep GCC from whining */
        fr.callno = 0;
        
        res = recvfrom(netsocket, buf, sizeof(buf), 0,(struct sockaddr *) &sin, &len);