diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-02-22 14:06:48 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2016-02-23 11:50:23 +0100 |
| commit | 793e0855365bbabfeffbd730fd9ee5ee9a011546 (patch) | |
| tree | fa0d77b1b0f96a90f86147c49a8008a8eacd56c1 /src/object_api.c | |
| parent | be8479c9873315afcf6b86f0b1bb79052a23b363 (diff) | |
| download | libgit2-793e0855365bbabfeffbd730fd9ee5ee9a011546.tar.gz | |
refdb_fs: remove unnecessary check for NULL
The fail-label of `reflog_parse` explicitly checks the entry
poitner for NULL before freeing it. When we jump to the label the
variable has to be set to a non-NULL and valid pointer though: if
the allocation fails we immediately return with an error code and
if the loop was not entered we return with a success code,
withouth executing the label's code.
Remove the useless NULL-check to silence Coverity.
Diffstat (limited to 'src/object_api.c')
0 files changed, 0 insertions, 0 deletions
