Commit 3a6420f3 by Rick Bradley

don't deref before we've asserted

just sayin'.
parent 25fa3ae3
...@@ -208,10 +208,10 @@ int git_reflog_read(git_reflog **reflog, const git_reference *ref) ...@@ -208,10 +208,10 @@ int git_reflog_read(git_reflog **reflog, const git_reference *ref)
git_buf log_file = GIT_BUF_INIT; git_buf log_file = GIT_BUF_INIT;
git_reflog *log = NULL; git_reflog *log = NULL;
*reflog = NULL;
assert(reflog && ref); assert(reflog && ref);
*reflog = NULL;
if (reflog_init(&log, ref) < 0) if (reflog_init(&log, ref) < 0)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment