don't deref before we've asserted

just sayin'.
This commit is contained in:
Rick Bradley 2012-12-18 17:46:18 -06:00
parent 25fa3ae39c
commit 3a6420f378

View File

@ -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;