summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-03-22 16:00:02 -0800
committerunknown <jimw@mysql.com>2005-03-22 16:00:02 -0800
commit18e7d8f6d78fe83a1d4b53e605cfc4a22096fb45 (patch)
tree12ada67da810ea124528f68f0088718c36329d21 /bdb
parent3a88de432160d0aa9bfb1cf6e8d3c4febd0eff71 (diff)
downloadmariadb-git-18e7d8f6d78fe83a1d4b53e605cfc4a22096fb45.tar.gz
Fix calls to memset() with arguments out of order. (Bug #9323)
bdb/hash/hash_open.c: Fix order of arguments to memset() bdb/btree/bt_open.c: Fix order of arguments to memset() ndb/src/kernel/vm/VMSignal.cpp: Fix order of arguments to memset()
Diffstat (limited to 'bdb')
-rw-r--r--bdb/btree/bt_open.c2
-rw-r--r--bdb/hash/hash_open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bdb/btree/bt_open.c b/bdb/btree/bt_open.c
index 0b72391c267..24da41e9893 100644
--- a/bdb/btree/bt_open.c
+++ b/bdb/btree/bt_open.c
@@ -489,7 +489,7 @@ __bam_new_file(dbp, txn, fhp, name)
goto err;
} else {
#ifdef DIAGNOSTIC
- memset(buf, dbp->pgsize, 0);
+ memset(buf, 0, dbp->pgsize);
#endif
root = (PAGE *)buf;
}
diff --git a/bdb/hash/hash_open.c b/bdb/hash/hash_open.c
index 041a1df1e7b..f976f5b6816 100644
--- a/bdb/hash/hash_open.c
+++ b/bdb/hash/hash_open.c
@@ -409,7 +409,7 @@ __ham_new_file(dbp, txn, fhp, name)
goto err;
} else {
#ifdef DIAGNOSTIC
- memset(buf, dbp->pgsize, 0);
+ memset(buf, 0, dbp->pgsize);
#endif
page = (PAGE *)buf;
}