am 346329b7: Merge "Move atrace from the obsolete bzero to memset."

* commit '346329b7a70b594895be0aec5dc00f9f4108b533':
  Move atrace from the obsolete bzero to memset.
This commit is contained in:
Elliott Hughes 2015-01-25 20:43:27 +00:00 committed by Android Git Automerger
commit 2e5a1cf27e
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/sendfile.h>
#include <time.h>
#include <zlib.h>
@ -648,7 +649,7 @@ static void dumpTrace()
uint8_t *in, *out;
int result, flush;
bzero(&zs, sizeof(zs));
memset(&zs, 0, sizeof(zs));
result = deflateInit(&zs, Z_DEFAULT_COMPRESSION);
if (result != Z_OK) {
fprintf(stderr, "error initializing zlib: %d\n", result);