Always memset the newly malloc'ed argument memory to 0 inside kFormat
svn-id: r47498
This commit is contained in:
parent
bab94d58ba
commit
aab6485d32
1 changed files with 0 additions and 2 deletions
|
@ -213,9 +213,7 @@ reg_t kFormat(EngineState *s, int argc, reg_t *argv) {
|
|||
|
||||
|
||||
arguments = (uint16 *)malloc(sizeof(uint16) * argc);
|
||||
#ifdef SATISFY_PURIFY
|
||||
memset(arguments, 0, sizeof(uint16) * argc);
|
||||
#endif
|
||||
|
||||
for (i = startarg; i < argc; i++)
|
||||
arguments[i-startarg] = argv[i].toUint16(); /* Parameters are copied to prevent overwriting */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue