prepare_revision_walk(): check for return value in all places
[gitweb.git] / sha1_name.c
index 0a65d234de377f98207186b277901bd44436af6d..c2c938c4e161fc6849a87a7a19336712f36f74ff 100644 (file)
@@ -869,7 +869,7 @@ static int get_sha1_oneline(const char *prefix, unsigned char *sha1,
                commit = pop_most_recent_commit(&list, ONELINE_SEEN);
                if (!parse_object(commit->object.sha1))
                        continue;
-               buf = get_commit_buffer(commit);
+               buf = get_commit_buffer(commit, NULL);
                p = strstr(buf, "\n\n");
                matches = p && !regexec(&regex, p + 2, 0, NULL, 0);
                unuse_commit_buffer(commit, buf);