don't deref before we've asserted just sayin'.
diff --git a/src/reflog.c b/src/reflog.c
index df799b1..2756229 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -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;