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 2006/05/03 11:23:42 UTC

svn commit: r399223 - in /incubator/harmony/enhanced/classlib/trunk/native-src: linux.IA32/port/hysignal.c shared/common/iohelp.c shared/pool/pool.c shared/port/hynls.c

Author: tellison
Date: Wed May  3 02:23:27 2006
New Revision: 399223

URL: http://svn.apache.org/viewcvs?rev=399223&view=rev
Log:
Apply patch HARMONY-185 (linux native sources use uninitialized variables)

Modified:
    incubator/harmony/enhanced/classlib/trunk/native-src/linux.IA32/port/hysignal.c
    incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c
    incubator/harmony/enhanced/classlib/trunk/native-src/shared/pool/pool.c
    incubator/harmony/enhanced/classlib/trunk/native-src/shared/port/hynls.c

Modified: incubator/harmony/enhanced/classlib/trunk/native-src/linux.IA32/port/hysignal.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/native-src/linux.IA32/port/hysignal.c?rev=399223&r1=399222&r2=399223&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/native-src/linux.IA32/port/hysignal.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/native-src/linux.IA32/port/hysignal.c Wed May  3 02:23:27 2006
@@ -270,7 +270,7 @@
 
   struct HySignalHandlerRecord thisRecord;
   hythread_t thisThread;
-  U_32 rc;
+  U_32 rc = 0;
   U_32 allowHandlers;
 
   hythread_monitor_enter (masterHandlerMonitor);

Modified: incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c?rev=399223&r1=399222&r2=399223&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c Wed May  3 02:23:27 2006
@@ -119,7 +119,7 @@
   jbyte *buf;
   PORT_ACCESS_FROM_ENV (env);
   jsize len;
-  char *errorMessage;
+  char *errorMessage = NULL;
 
 /* TODO: ARRAY PINNING */
 #define INTERNAL_MAX 512

Modified: incubator/harmony/enhanced/classlib/trunk/native-src/shared/pool/pool.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/native-src/shared/pool/pool.c?rev=399223&r1=399222&r2=399223&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/native-src/shared/pool/pool.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/native-src/shared/pool/pool.c Wed May  3 02:23:27 2006
@@ -62,7 +62,7 @@
 {
   U_64 roundedStructSize, tempAllocSize, finalAllocSize;
   U_32 finalNumberOfElements, tempNumElems;
-  UDATA freeLocation, *oldFreeLocation;
+  UDATA freeLocation, *oldFreeLocation = NULL;
   HyPool *newHandle;
 
   if (minNumberElements == 0)
@@ -566,7 +566,7 @@
 {
   while (aPool)
     {
-      UDATA freeLocation, *oldFreeLocation;
+      UDATA freeLocation, *oldFreeLocation = NULL;
       U_32 tempNumElems;
 
       aPool->usedElements = 0;

Modified: incubator/harmony/enhanced/classlib/trunk/native-src/shared/port/hynls.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/native-src/shared/port/hynls.c?rev=399223&r1=399222&r2=399223&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/native-src/shared/port/hynls.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/native-src/shared/port/hynls.c Wed May  3 02:23:27 2006
@@ -563,7 +563,7 @@
   U_8 dataBuf[BUF_SIZE];
   U_8 *charPointer = NULL;
   U_8 *endPointer = NULL;
-  int mode = MSG_NONE, count, digit;
+  int mode = MSG_NONE, count = 0, digit;
   U_32 unicode = 0;
   char nextChar;
   U_32 offset = 0, bufSize = BUF_SIZE, maxOffset = 0;