harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r658291 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c
Date Tue, 20 May 2008 15:49:25 GMT
Author: odeakin
Date: Tue May 20 08:49:25 2008
New Revision: 658291

URL: http://svn.apache.org/viewvc?rev=658291&view=rev
Log:
The fls variable should be declared at the start of the function.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c?rev=658291&r1=658290&r2=658291&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c Tue May
20 08:49:25 2008
@@ -175,6 +175,7 @@
     struct tm *tmStruct;
     char tzInfo[9];
     int h, m;
+    jboolean fls;
 
     time(&curTime);
     //curTime += 15552000l;
@@ -198,7 +199,7 @@
     tzInfo[7] = m % 10 + '0';
     tzInfo[8] = 0;
 
-    jboolean fls = JNI_FALSE;
+    fls = JNI_FALSE;
 
     (*env)->SetBooleanArrayRegion(env, isCustomTimeZone, 0, 1, &fls);
     return (*env)->NewStringUTF(env, tzInfo);



Mime
View raw message