]> granicus.if.org Git - cgit/commitdiff
Fix segfault on ppc when browsing tree
authorMartins Polakovs <martins.polakovs@gmail.com>
Thu, 10 Dec 2009 15:35:42 +0000 (17:34 +0159)
committerLars Hjemli <hjemli@gmail.com>
Sat, 12 Dec 2009 10:56:25 +0000 (11:56 +0100)
ui-blob.c
ui-plain.c
ui-tree.c

index 2ccd31d2a19e5df1651cf2efff5952254cb3a0ad..89330ce5d12b6af662ed8a66d23262cf83d9152d 100644 (file)
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -50,7 +50,7 @@ void cgit_print_blob(const char *hex, char *path, const char *head)
                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);
        }
 
index a4ce077ac512f4735ea693967a5a0b375473bbf7..66cb19cdbd1058e37e60157c40a18d1a782bb3ff 100644 (file)
@@ -88,7 +88,7 @@ void cgit_print_plain(struct cgit_context *ctx)
                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);
 }
index f53ab6414b9ad50c8f4210eaab8afc169a5c4a00..a1647678ecac88798f0f784a386765a16de4a0e7 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -280,6 +280,6 @@ void cgit_print_tree(const char *rev, char *path)
        }
 
        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();
 }