mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Merge pull request #2063 from linquize/reflog-msg-null
git_reflog_entry_message can be null
This commit is contained in:
commit
d62bf0bf83
@ -168,6 +168,8 @@ static int retrieve_previously_checked_out_branch_or_revision(git_object **out,
|
|||||||
for (i = 0; i < numentries; i++) {
|
for (i = 0; i < numentries; i++) {
|
||||||
entry = git_reflog_entry_byindex(reflog, i);
|
entry = git_reflog_entry_byindex(reflog, i);
|
||||||
msg = git_reflog_entry_message(entry);
|
msg = git_reflog_entry_message(entry);
|
||||||
|
if (!msg)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (regexec(&preg, msg, 2, regexmatches, 0))
|
if (regexec(&preg, msg, 2, regexmatches, 0))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user