Fix: initialize getline linesize argument to 0
[babeltrace.git] / converter / babeltrace-log.c
index 55eabf2d1e39015910b4e1c1991627f51205c7ae..bdb01f16f4b6e7d18f2f642ba3c3c5224072177a 100644 (file)
@@ -28,8 +28,6 @@
  * Depends on glibc 2.10 for getline().
  */
 
-#define _GNU_SOURCE
-#include <config.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -318,7 +316,7 @@ void trace_text(FILE *input, int output)
        struct ctf_stream_pos pos;
        ssize_t len;
        char *line = NULL, *nl;
-       size_t linesize;
+       size_t linesize = 0;
        int ret;
 
        memset(&pos, 0, sizeof(pos));
This page took 0.023195 seconds and 4 git commands to generate.