Skip to content

Commit e3c42fe

Browse files
author
Edward Thomson
committed
filebuf: fix uninitialized warning
1 parent 0d77a56 commit e3c42fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filebuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode)
7070
git_file source;
7171
char buffer[FILEIO_BUFSIZE];
7272
ssize_t read_bytes;
73-
int error;
73+
int error = 0;
7474

7575
source = p_open(file->path_original, O_RDONLY);
7676
if (source < 0) {

0 commit comments

Comments
 (0)