From e3c42fee7732c9e06fde4f5a8942a454e4514319 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 26 May 2016 12:39:09 -0500 Subject: filebuf: fix uninitialized warning --- src/filebuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filebuf.c b/src/filebuf.c index 6eee530ee..582399470 100644 --- a/src/filebuf.c +++ b/src/filebuf.c @@ -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) { -- cgit v1.2.1