diff options
author | unknown <jimw@mysql.com> | 2005-03-22 16:00:02 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-03-22 16:00:02 -0800 |
commit | f73f6c916758fe52cb9ea2e3ade1dff45475d0d8 (patch) | |
tree | 12ada67da810ea124528f68f0088718c36329d21 /bdb | |
parent | a7f6dfb8d3c52bd8ecbe6e8111001fbe14efaecd (diff) | |
download | mariadb-git-f73f6c916758fe52cb9ea2e3ade1dff45475d0d8.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.c | 2 | ||||
-rw-r--r-- | bdb/hash/hash_open.c | 2 |
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; } |