]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-tree.c
ui-shared.c: fix segfault when repo is empty
[cgit.git] / ui-tree.c
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();
 }