mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-15 13:04:19 +00:00
filebuf: fix uninitialized warning
This commit is contained in:
parent
bcef008f77
commit
efadf28d84
@ -70,7 +70,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode)
|
||||
git_file source;
|
||||
char buffer[FILEIO_BUFSIZE];
|
||||
ssize_t read_bytes;
|
||||
int error;
|
||||
int error = 0;
|
||||
|
||||
source = p_open(file->path_original, O_RDONLY);
|
||||
if (source < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user