diff options
Diffstat (limited to 'src/reflog.c')
-rw-r--r-- | src/reflog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflog.c b/src/reflog.c index df799b113..275622997 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; |