diff audacious/controlsocket.c @ 1454:de0146be48ee trunk

[svn] - fix the other bug exposed by strace
author nenolod
date Fri, 28 Jul 2006 14:13:59 -0700
parents 1c0cd95ef1ed
children 6fe7ba6e5489
line wrap: on
line diff
--- a/audacious/controlsocket.c	Fri Jul 28 14:12:59 2006 -0700
+++ b/audacious/controlsocket.c	Fri Jul 28 14:13:59 2006 -0700
@@ -161,6 +161,7 @@
     }
 
     for (i = 0;; i++) {
+	memset(&saddr, '\0', sizeof(saddr));
         saddr.sin_family = AF_INET;
 	saddr.sin_port = htons(37370 + i);