mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-30 19:51:27 +00:00
don't deref before we've asserted
just sayin'.
This commit is contained in:
parent
25fa3ae39c
commit
3a6420f378
@ -208,10 +208,10 @@ int git_reflog_read(git_reflog **reflog, const git_reference *ref)
|
||||
git_buf log_file = GIT_BUF_INIT;
|
||||
git_reflog *log = NULL;
|
||||
|
||||
*reflog = NULL;
|
||||
|
||||
assert(reflog && ref);
|
||||
|
||||
*reflog = NULL;
|
||||
|
||||
if (reflog_init(&log, ref) < 0)
|
||||
return -1;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user