all repos — cgit @ 24538b072718924d3418a258cf0009fb5b5768de

a hyperfast web frontend for git written in c

Fix segfault on ppc when browsing tree
Martins Polakovs martins.polakovs@gmail.com
Thu, 10 Dec 2009 17:34:42 +0159
commit

24538b072718924d3418a258cf0009fb5b5768de

parent

f2bf0a05280edddb4961214adfd7b440191737e2

3 files changed, 3 insertions(+), 3 deletions(-)

jump to
M ui-blob.cui-blob.c

@@ -50,7 +50,7 @@ if((!hex) && type == OBJ_COMMIT && path) {

commit = lookup_commit_reference(sha1); match_path = path; matched_sha1 = sha1; - read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL); + read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL); type = sha1_object_info(sha1,&size); }
M ui-plain.cui-plain.c

@@ -88,7 +88,7 @@ html_status(404, "Not found", 0);

return; } match_path = ctx->qry.path; - read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL); + read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL); if (!match) html_status(404, "Not found", 0); }
M ui-tree.cui-tree.c

@@ -280,6 +280,6 @@ return;

} match_path = path; - read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL); + read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL); ls_tail(); }