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

Commit d62093da authored by Martijn Coenen's avatar Martijn Coenen Committed by android-build-merger
Browse files

Merge "Truncate trace output files."

am: 09ab3783

Change-Id: Iec36d0074c6e5fd90c3f9b39d07feef89ddb4b31
parents 1a04c987 09ab3783
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1239,7 +1239,7 @@ int main(int argc, char **argv)
            fflush(stdout);
            int outFd = STDOUT_FILENO;
            if (g_outputFile) {
                outFd = open(g_outputFile, O_WRONLY | O_CREAT, 0644);
                outFd = open(g_outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
            }
            if (outFd == -1) {
                printf("Failed to open '%s', err=%d", g_outputFile, errno);