summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-05-26 12:39:09 -0500
committerEdward Thomson <ethomson@github.com>2016-06-01 10:03:52 -0500
commite3c42fee7732c9e06fde4f5a8942a454e4514319 (patch)
tree3f346d6ed122da1e07bf338b3d33da0d86fc9933
parent0d77a56f397b4d65bfcc0a5d66884dcac1ba7a16 (diff)
downloadlibgit2-e3c42fee7732c9e06fde4f5a8942a454e4514319.tar.gz
filebuf: fix uninitialized warning
-rw-r--r--src/filebuf.c2
1 files changed, 1 insertions, 1 deletions
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) {