Commit efadf28d by Edward Thomson Committed by Carlos Martín Nieto

filebuf: fix uninitialized warning

parent bcef008f
...@@ -70,7 +70,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode) ...@@ -70,7 +70,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode)
git_file source; git_file source;
char buffer[FILEIO_BUFSIZE]; char buffer[FILEIO_BUFSIZE];
ssize_t read_bytes; ssize_t read_bytes;
int error; int error = 0;
source = p_open(file->path_original, O_RDONLY); source = p_open(file->path_original, O_RDONLY);
if (source < 0) { if (source < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment