summaryrefslogtreecommitdiff
path: root/send-stream.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-06-05 10:13:39 +0200
committerDavid Sterba <dsterba@suse.cz>2014-11-07 18:14:38 +0100
commit5676e94ad8be150e6ba1606bb29c370b27df4b83 (patch)
tree7150dd09deeb3f5f2abc721e911ed0c67b83dc63 /send-stream.c
parent3d0b0111df10fadcf7928ec628c306863d0c2d5a (diff)
downloadbtrfs-progs-5676e94ad8be150e6ba1606bb29c370b27df4b83.tar.gz
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 <mail@eworm.de> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'send-stream.c')
-rw-r--r--send-stream.c2
1 files changed, 1 insertions, 1 deletions
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);