You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2008/05/20 17:49:25 UTC
svn commit: r658291 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/helpers.c
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);