Commit f73f6c91 authored by unknown's avatar unknown

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()
parent a7f6dfb8
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -18,8 +18,8 @@
#include <string.h>
Signal::Signal(){
memset(&header, sizeof(header), 0);
memset(theData, sizeof(theData), 0);
memset(&header, 0, sizeof(header));
memset(theData, 0, sizeof(theData));
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment