projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: initialize getline linesize argument to 0
[babeltrace.git]
/
converter
/
babeltrace-log.c
diff --git
a/converter/babeltrace-log.c
b/converter/babeltrace-log.c
index 55eabf2d1e39015910b4e1c1991627f51205c7ae..bdb01f16f4b6e7d18f2f642ba3c3c5224072177a 100644
(file)
--- a/
converter/babeltrace-log.c
+++ b/
converter/babeltrace-log.c
@@
-28,8
+28,6
@@
* Depends on glibc 2.10 for getline().
*/
* Depends on glibc 2.10 for getline().
*/
-#define _GNU_SOURCE
-#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.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;
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));
int ret;
memset(&pos, 0, sizeof(pos));
This page took
0.023295 seconds
and
4
git commands to generate.