From d75074f4c02e8d8928d20261a891d94d26d41ea7 Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Sat, 22 Sep 2012 12:29:16 +0200 Subject: [PATCH] Fix -Wmaybe-uninitialized warning --- src/checkout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkout.c b/src/checkout.c index ea5e79abd..7cf9fe033 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -59,7 +59,7 @@ static int blob_content_to_file( mode_t entry_filemode, git_checkout_opts *opts) { - int error, nb_filters = 0; + int error = -1, nb_filters = 0; mode_t file_mode = opts->file_mode; bool dont_free_filtered = false; git_buf unfiltered = GIT_BUF_INIT, filtered = GIT_BUF_INIT;