Commit 9d8fa537 by Russell Belfer

Merge pull request #1158 from rick/i-do-not-think-this-means-what-you-think-it-means

don't deref before we've asserted
parents 25fa3ae3 3a6420f3
...@@ -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