Skip to content

Commit 1437ebf

Browse files
sgngitster
authored andcommitted
test-parse-pathspec-file.c: s/0/NULL/ for pointer type
Signed-off-by: Đoàn Trần Công Danh <[email protected]> Reviewed-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e870325 commit 1437ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/helper/test-parse-pathspec-file.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
int cmd__parse_pathspec_file(int argc, const char **argv)
77
{
88
struct pathspec pathspec;
9-
const char *pathspec_from_file = 0;
9+
const char *pathspec_from_file = NULL;
1010
int pathspec_file_nul = 0, i;
1111

1212
static const char *const usage[] = {
@@ -20,9 +20,9 @@ int cmd__parse_pathspec_file(int argc, const char **argv)
2020
OPT_END()
2121
};
2222

23-
parse_options(argc, argv, 0, options, usage, 0);
23+
parse_options(argc, argv, NULL, options, usage, 0);
2424

25-
parse_pathspec_file(&pathspec, 0, 0, 0, pathspec_from_file,
25+
parse_pathspec_file(&pathspec, 0, 0, NULL, pathspec_from_file,
2626
pathspec_file_nul);
2727

2828
for (i = 0; i < pathspec.nr; i++)

0 commit comments

Comments
 (0)