diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-20 15:36:56 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-20 15:36:56 +0000 |
commit | 2986815f9057118d71ee52f6803161b67b67d52b (patch) | |
tree | 406c543442e35ea373a8f68a5f4fed5859f02324 /libjava/prims.cc | |
parent | 2967f654416d9fd9bb52d9468098d2603ecd0f1f (diff) | |
download | gcc-2986815f9057118d71ee52f6803161b67b67d52b.tar.gz |
2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (process_gcj_properties): Don't increment i within LHS
of assignment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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++; } } } |