mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 17:12:51 +00:00
Fix -Wmaybe-uninitialized warning
This commit is contained in:
parent
63f6c82568
commit
d75074f4c0
@ -59,7 +59,7 @@ static int blob_content_to_file(
|
|||||||
mode_t entry_filemode,
|
mode_t entry_filemode,
|
||||||
git_checkout_opts *opts)
|
git_checkout_opts *opts)
|
||||||
{
|
{
|
||||||
int error, nb_filters = 0;
|
int error = -1, nb_filters = 0;
|
||||||
mode_t file_mode = opts->file_mode;
|
mode_t file_mode = opts->file_mode;
|
||||||
bool dont_free_filtered = false;
|
bool dont_free_filtered = false;
|
||||||
git_buf unfiltered = GIT_BUF_INIT, filtered = GIT_BUF_INIT;
|
git_buf unfiltered = GIT_BUF_INIT, filtered = GIT_BUF_INIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user