changeset 32776:804239d704ff

stun: Initialize 'in', silence compiler.
author Paul Aurich <paul@darkrain42.org>
date Wed, 23 May 2012 03:25:01 +0000
parents 4acc5b98f143
children 3b1070cb4f29
files libpurple/stun.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/stun.c	Fri May 04 07:33:51 2012 +0000
+++ b/libpurple/stun.c	Wed May 23 03:25:01 2012 +0000
@@ -174,6 +174,8 @@
 	struct ifreq *ifr;
 	struct sockaddr_in *sinptr;
 
+	memset(&in, 0, sizeof(in));
+
 	len = recv(source, buffer, sizeof(buffer) - 1, 0);
 	if (!len) {
 		purple_debug_warning("stun", "unable to read stun response\n");