summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds-send.c2
-rw-r--r--send-stream.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds-send.c b/cmds-send.c
index 7141c073..b17b5e2c 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -427,7 +427,7 @@ int cmd_send(int argc, char **argv)
u32 i;
char *mount_root = NULL;
char *snapshot_parent = NULL;
- u64 root_id;
+ u64 root_id = 0;
u64 parent_root_id = 0;
int full_send = 1;
int new_end_cmd_semantic = 0;
diff --git a/send-stream.c b/send-stream.c
index 10b36b6a..66c04884 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);