diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-11-25 15:02:34 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2016-12-12 09:16:33 +0100 |
| commit | 34b320535bde5505429f1349fc7d5cc423857a20 (patch) | |
| tree | d4a619ea328bf79b66b324120141edef01521a47 /src/pack.c | |
| parent | e781a0c52f2816ea5e9ba83f58b9808c0e42024f (diff) | |
| download | libgit2-34b320535bde5505429f1349fc7d5cc423857a20.tar.gz | |
Fix potential use of uninitialized values
Diffstat (limited to 'src/pack.c')
| -rw-r--r-- | src/pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c index 2ee0c60e4..56de64d57 100644 --- a/src/pack.c +++ b/src/pack.c @@ -509,8 +509,10 @@ int git_packfile_resolve_header( git_packfile_stream_free(&stream); if (error < 0) return error; - } else + } else { *size_p = size; + base_offset = 0; + } while (type == GIT_OBJ_OFS_DELTA || type == GIT_OBJ_REF_DELTA) { curpos = base_offset; |
