From: Bryce McKinlay Date: Tue, 20 Jul 2004 15:36:56 +0000 (+0000) Subject: prims.cc (process_gcj_properties): Don't increment i within LHS of assignment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4ffdef7aa39560603ec5bafa6e64e728a18c223;p=gcc.git prims.cc (process_gcj_properties): Don't increment i within LHS of assignment. 2004-07-19 Bryce McKinlay * prims.cc (process_gcj_properties): Don't increment i within LHS of assignment. From-SVN: r84957 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8f7edb16cf4..07810e47560 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-07-19 Bryce McKinlay + + * prims.cc (process_gcj_properties): Don't increment i within LHS + of assignment. + 2004-07-19 Per Bothner Print -verbose:message on "loading", not initialization. diff --git a/libjava/prims.cc b/libjava/prims.cc index 19bce1e62a0..ca8265f0df6 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -922,8 +922,10 @@ process_gcj_properties () // Null terminate the strings. while (_Jv_Environment_Properties[i].key) { - _Jv_Environment_Properties[i].key[_Jv_Environment_Properties[i].key_length] = 0; - _Jv_Environment_Properties[i++].value[_Jv_Environment_Properties[i].value_length] = 0; + property_pair *prop = &_Jv_Environment_Properties[i]; + prop->key[prop->key_length] = 0; + prop->value[prop->value_length] = 0; + i++; } } }