Merge pull request #2535 from libgit2/cmn/unpack-offset

pack: return the correct final offset
This commit is contained in:
Vicent Marti 2014-08-26 17:45:07 +02:00
commit 397bc8d897

View File

@ -744,7 +744,7 @@ cleanup:
git__free(obj->data);
if (elem)
*obj_offset = elem->offset;
*obj_offset = curpos;
git_array_clear(chain);
return error;