From 5676e94ad8be150e6ba1606bb29c370b27df4b83 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 5 Jun 2014 10:13:39 +0200 Subject: btrfs-progs: fix compiler warning gcc 4.9.0 gives warnings about possibly uninitialized values when compiling with function inlining and optimization level two enabled (CFLAGS="-finline-functions -O2"). Initializing the values fixes the warning. Hope this is correct. Signed-off-by: Christian Hesse Signed-off-by: David Sterba --- send-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'send-stream.c') diff --git a/send-stream.c b/send-stream.c index 10b36b6..66c0488 100644 --- a/send-stream.c +++ b/send-stream.c @@ -216,7 +216,7 @@ static int tlv_get_string(struct btrfs_send_stream *s, int attr, char **str) { int ret; void *data; - int len; + int len = 0; TLV_GET(s, attr, &data, &len); -- cgit v1.2.1