harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r693823 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
Date Wed, 10 Sep 2008 12:49:29 GMT
Author: tellison
Date: Wed Sep 10 05:49:28 2008
New Revision: 693823

URL: http://svn.apache.org/viewvc?rev=693823&view=rev
Log:
Fix uninitialized variable reported in HARMONY-5976 ([classlib] Results of static analysis)

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c?rev=693823&r1=693822&r2=693823&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
Wed Sep 10 05:49:28 2008
@@ -2778,7 +2778,7 @@
 hysock_set_nonblocking (struct HyPortLibrary * portLibrary,
 			hysocket_t socketP, BOOLEAN nonblocking)
 {
-  I_32 rc;
+  I_32 rc = 0;
   U_32 param = nonblocking;
 
   /* If both the IPv4 and IPv6 socket are open then we want to set the option on both.  If
only one is open,



Mime
View raw message