diff options
author | jonas@perch.ndb.mysql.com <> | 2005-09-30 13:40:02 +0200 |
---|---|---|
committer | jonas@perch.ndb.mysql.com <> | 2005-09-30 13:40:02 +0200 |
commit | a9417648fd836e4a55364657df7544030ec75819 (patch) | |
tree | f802240d3724006d09dcf41dfd75196c8afe3dca /ndb | |
parent | 78ba02f26e581d15f36f0c1de70b98422845c5b5 (diff) | |
download | mariadb-git-a9417648fd836e4a55364657df7544030ec75819.tar.gz |
ndb -
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 |