X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ls-tree.c;h=e198a20cb3dd88ae46da1aaf005846fe42843ea7;hb=2cf67f1e35d3a2175e426b4b2841374e68105c2c;hp=450bff2472084098af018460567c51ef90b847ad;hpb=66204988fe2e5a2a18c4ff55798c7203775d9fd4;p=git.git diff --git a/ls-tree.c b/ls-tree.c index 450bff24..e198a20c 100644 --- a/ls-tree.c +++ b/ls-tree.c @@ -79,7 +79,7 @@ static struct tree_entry_list *find_entry(const char *path) slash = strchr(path, '/'); if (!slash) { len = strlen(path); - next = 0; + next = NULL; } else { next = slash + 1; @@ -208,7 +208,7 @@ static int list(char **path) return err; } -static const char *ls_tree_usage = +static const char ls_tree_usage[] = "git-ls-tree [-d] [-r] [-z] [path...]"; int main(int argc, char **argv)