Skip to content

Commit

Permalink
Fix "warning: ‘addrlen’ may be used uninitialized in this function"
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Spiers committed Mar 12, 2012
1 parent 86d36db commit a1cd996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport.c
Expand Up @@ -495,7 +495,7 @@ static int booth_udp_send(unsigned long to, void *buf, int len)
struct sockaddr_storage sockaddr;
struct iovec iovec;
unsigned int iov_len;
int addrlen, rv;
int addrlen = 0, rv;

iovec.iov_base = (void *)buf;
iovec.iov_len = len;
Expand Down

0 comments on commit a1cd996

Please sign in to comment.