You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2008/09/10 14:49:29 UTC

svn commit: r693823 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c

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,