]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-parse-pathspec-file.c: s/0/NULL/ for pointer type
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Mon, 27 Apr 2020 14:22:34 +0000 (21:22 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Apr 2020 18:21:12 +0000 (11:21 -0700)
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>
t/helper/test-parse-pathspec-file.c

index 02f4ccfd2a2d1d23f25d82e38a050c70ee3fff10..b3e08cef4b3f86ba95509f1d66345f7ca6016ea3 100644 (file)
@@ -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++)