Fix segfault on ppc when browsing tree
Martins Polakovs martins.polakovs@gmail.com
Thu, 10 Dec 2009 17:34:42 +0159
3 files changed,
3 insertions(+),
3 deletions(-)
M
ui-blob.c
→
ui-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.c
→
ui-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); }