Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e5a1cf2 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

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

* commit '346329b7':
  Move atrace from the obsolete bzero to memset.
parents 3dea840d 346329b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);