mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
reflog: Make git_reflog_free() accept null param
This commit is contained in:
parent
f7ae3f7531
commit
d2aa6de722
@ -166,6 +166,9 @@ void git_reflog_free(git_reflog *reflog)
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
git_reflog_entry *entry;
|
git_reflog_entry *entry;
|
||||||
|
|
||||||
|
if (reflog == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i=0; i < reflog->entries.length; i++) {
|
for (i=0; i < reflog->entries.length; i++) {
|
||||||
entry = git_vector_get(&reflog->entries, i);
|
entry = git_vector_get(&reflog->entries, i);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user