diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/reflog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflog.c b/src/reflog.c index a1ea7a27d..3c780cd1e 100644 --- a/src/reflog.c +++ b/src/reflog.c @@ -166,6 +166,9 @@ void git_reflog_free(git_reflog *reflog) unsigned int i; git_reflog_entry *entry; + if (reflog == NULL) + return; + for (i=0; i < reflog->entries.length; i++) { entry = git_vector_get(&reflog->entries, i); |
