mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 13:48:41 +00:00
Fix -Wuninitialized warning
This commit is contained in:
parent
21d847d38f
commit
13faa77c57
@ -68,7 +68,7 @@ static int write_file_stream(
|
||||
int fd, error;
|
||||
char buffer[4096];
|
||||
git_odb_stream *stream = NULL;
|
||||
ssize_t read_len, written = 0;
|
||||
ssize_t read_len = -1, written = 0;
|
||||
|
||||
if ((error = git_odb_open_wstream(
|
||||
&stream, odb, (size_t)file_size, GIT_OBJ_BLOB)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user