diff options
author | Michael Schubert <schu@schu.io> | 2012-09-22 12:29:16 +0200 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-09-22 12:29:16 +0200 |
commit | d75074f4c02e8d8928d20261a891d94d26d41ea7 (patch) | |
tree | 3dfc0417287e2efdbe9cb9791fdd2dbb15e2cba4 | |
parent | 63f6c82568419848e726ae6373d2ba03de0621fd (diff) | |
download | libgit2-d75074f4c02e8d8928d20261a891d94d26d41ea7.tar.gz |
Fix -Wmaybe-uninitialized warning
-rw-r--r-- | src/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |