On Tue, Nov 20, 2018 at 08:06:16AM -0500, Ben Peart wrote:
> >diff --git a/read-cache.c b/read-cache.c
> >index 4ca81286c0..1e9c772603 100644
> >--- a/read-cache.c
> >+++ b/read-cache.c
> >@@ -2689,6 +2689,15 @@ void update_index_if_able(struct index_state *istate,
> >struct lock_file *lockfile
> > rollback_lock_file(lockfile);
> > }
> >+static int record_eoie(void)
> >+{
> >+ int val;
>
> I believe you are going to want to initialize val to 0 here as it is on the
> stack so is not guaranteed to be zero.
The git_config_get_bool() call below will initialize it anyway.
> >+
> >+ if (!git_config_get_bool("index.recordendofindexentries", &val))
> >+ return val;
> >+ return 0;
> >+}