INN commit: trunk/innd (rc.c)

INN Commit rra at isc.org
Sat Aug 22 18:11:56 UTC 2009


    Date: Saturday, August 22, 2009 @ 11:11:55
  Author: iulius
Revision: 8597

Silent gcc warnings for a possibly uninitialized variable.

Modified:
  trunk/innd/rc.c

------+
 rc.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: rc.c
===================================================================
--- rc.c	2009-08-21 08:30:01 UTC (rev 8596)
+++ rc.c	2009-08-22 18:11:55 UTC (rev 8597)
@@ -123,7 +123,8 @@
 {
 #define PORT_IDENTD 113
     char IDENTuser[80];
-    struct sockaddr *s_local, *s_distant;
+    struct sockaddr *s_local;
+    struct sockaddr *s_distant = NULL;
     int ident_fd;
     socklen_t len;
     int port1,port2;
@@ -142,7 +143,7 @@
     s_distant = xmalloc(sizeof(struct sockaddr_storage));
     len = sizeof(struct sockaddr_storage);
     if ((getpeername(fd, s_distant, &len)) < 0) {
-	syslog(L_ERROR, "can't do getsockname for identd");
+	syslog(L_ERROR, "can't do getpeername for identd");
         goto fail;
     }
 #ifdef HAVE_INET6




More information about the inn-committers mailing list