summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-04-27 14:22:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-27 18:21:12 (GMT)
commit1437ebf74a4c37b5ddafc14d4cdb6caf95bd16c6 (patch)
tree29d5c42ec6346a9e8d5b84bfdd12ab91f96a24c3
parente870325ee8575d5c3d7afe0ba2c9be072c692b65 (diff)
downloadgit-1437ebf74a4c37b5ddafc14d4cdb6caf95bd16c6.zip
git-1437ebf74a4c37b5ddafc14d4cdb6caf95bd16c6.tar.gz
git-1437ebf74a4c37b5ddafc14d4cdb6caf95bd16c6.tar.bz2
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>
-rw-r--r--t/helper/test-parse-pathspec-file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/helper/test-parse-pathspec-file.c b/t/helper/test-parse-pathspec-file.c
index 02f4ccf..b3e08ce 100644
--- a/t/helper/test-parse-pathspec-file.c
+++ b/t/helper/test-parse-pathspec-file.c
@@ -6,7 +6,7 @@
int cmd__parse_pathspec_file(int argc, const char **argv)
{
struct pathspec pathspec;
- const char *pathspec_from_file = 0;
+ const char *pathspec_from_file = NULL;
int pathspec_file_nul = 0, i;
static const char *const usage[] = {
@@ -20,9 +20,9 @@ int cmd__parse_pathspec_file(int argc, const char **argv)
OPT_END()
};
- parse_options(argc, argv, 0, options, usage, 0);
+ parse_options(argc, argv, NULL, options, usage, 0);
- parse_pathspec_file(&pathspec, 0, 0, 0, pathspec_from_file,
+ parse_pathspec_file(&pathspec, 0, 0, NULL, pathspec_from_file,
pathspec_file_nul);
for (i = 0; i < pathspec.nr; i++)