diff options
author | unknown <jonas@perch.ndb.mysql.com> | 2005-09-30 13:40:02 +0200 |
---|---|---|
committer | unknown <jonas@perch.ndb.mysql.com> | 2005-09-30 13:40:02 +0200 |
commit | 937de41ae8a397174a5d3919276ababd54fbecb4 (patch) | |
tree | f802240d3724006d09dcf41dfd75196c8afe3dca /ndb | |
parent | 5f5fc659099f17fe096263f200152cd3f66f5a31 (diff) | |
download | mariadb-git-937de41ae8a397174a5d3919276ababd54fbecb4.tar.gz |
ndb -
Fix compile error with gcc296
ndb/src/common/util/SimpleProperties.cpp:
Fix compile error with gcc296
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/common/util/SimpleProperties.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ndb/src/common/util/SimpleProperties.cpp b/ndb/src/common/util/SimpleProperties.cpp index c25aaea491a..c9251c6a854 100644 --- a/ndb/src/common/util/SimpleProperties.cpp +++ b/ndb/src/common/util/SimpleProperties.cpp @@ -51,11 +51,12 @@ SimpleProperties::Writer::add(const char * value, int len){ union { Uint32 lastWord; char lastBytes[4]; - }; - memcpy(lastBytes, + } tmp; + tmp.lastWord =0 ; + memcpy(tmp.lastBytes, value + putLen*4, len - putLen*4); - return putWord(lastWord); + return putWord(tmp.lastWord); } bool |