diff options
author | jimw@mysql.com <> | 2005-03-22 16:00:02 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-03-22 16:00:02 -0800 |
commit | 0842efeab221169959a4e4a418d1cd312320ed04 (patch) | |
tree | 12ada67da810ea124528f68f0088718c36329d21 /bdb | |
parent | 2a53e9d9a6d0d7a2a80c74c5f5c1af7aa18ae39e (diff) | |
download | mariadb-git-0842efeab221169959a4e4a418d1cd312320ed04.tar.gz |
Fix calls to memset() with arguments out of order. (Bug #9323)
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; } |