test-parse-pathspec-file.c: s/0/NULL/ for pointer type
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Reviewed-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Đoàn Trần Công Danh committed
Apr 27, 2020 at 21:22 UTC
1437ebf74a4c37b5ddafc14d4cdb6caf95bd16c6
1 file changed
+3
-3
t/helper/test-parse-pathspec-file.c
+3
-3
@@ -6,7 +6,7 @@
6
int cmd__parse_pathspec_file(int argc, const char **argv)
7
{
8
struct pathspec pathspec;
9
- const char *pathspec_from_file = 0;
9
+ const char *pathspec_from_file = NULL;
10
int pathspec_file_nul = 0, i;
11
12
static const char *const usage[] = {
@@ -20,9 +20,9 @@ int cmd__parse_pathspec_file(int argc, const char **argv)
20
OPT_END()
21
};
22
23
- parse_options(argc, argv, 0, options, usage, 0);
23
+ parse_options(argc, argv, NULL, options, usage, 0);
24
25
- parse_pathspec_file(&pathspec, 0, 0, 0, pathspec_from_file,
25
+ parse_pathspec_file(&pathspec, 0, 0, NULL, pathspec_from_file,
26
pathspec_file_nul);
27
28
for (i = 0; i < pathspec.nr; i++)