apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r190564 - /apr/apr/trunk/network_io/unix/inet_ntop.c
Date Tue, 14 Jun 2005 09:55:00 GMT
Author: jorton
Date: Tue Jun 14 02:54:59 2005
New Revision: 190564

URL: http://svn.apache.org/viewcvs?rev=190564&view=rev
Log:
* network_io/unix/inet_ntop.c (inet_ntop6): Silence "variable may be
used uninitialized" warning with gcc 4.0.

Modified:
    apr/apr/trunk/network_io/unix/inet_ntop.c

Modified: apr/apr/trunk/network_io/unix/inet_ntop.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/inet_ntop.c?rev=190564&r1=190563&r2=190564&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/inet_ntop.c (original)
+++ apr/apr/trunk/network_io/unix/inet_ntop.c Tue Jun 14 02:54:59 2005
@@ -163,6 +163,7 @@
     next_dest = words;
     best.base = -1;
     cur.base = -1;
+    cur.len = best.len = 0; /* silence gcc4 warning */
     i = 0;
     do {
         unsigned int next_word = (unsigned int)*next_src++;



Mime
View raw message