Use memset instead of bzero, its more portable.

llvm-svn: 91754
This commit is contained in:
Daniel Dunbar 2009-12-19 03:31:50 +00:00
parent 7b245eda5e
commit c745a620a2
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
#include <stdarg.h> /* for va_*() */
#include <stdio.h> /* for vsnprintf() */
#include <stdlib.h> /* for exit() */
#include <string.h> /* for bzero() */
#include <string.h> /* for memset() */
#include "X86DisassemblerDecoder.h"
@ -1331,7 +1331,7 @@ int decodeInstruction(struct InternalInstruction* insn,
void* loggerArg,
uint64_t startLoc,
DisassemblerMode mode) {
bzero(insn, sizeof(struct InternalInstruction));
memset(insn, 0, sizeof(struct InternalInstruction));
insn->reader = reader;
insn->readerArg = readerArg;