Skip to content

Commit 94a55e4

Browse files
committed
check-attr: the name of the character is NUL, not NULL
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 800531a commit 94a55e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/check-attr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ N_("git check-attr --stdin [-z] [-a | --all | attr...] < <list-of-paths>"),
1313
NULL
1414
};
1515

16-
static int null_term_line;
16+
static int nul_term_line;
1717

1818
static const struct option check_attr_options[] = {
1919
OPT_BOOLEAN('a', "all", &all_attrs, N_("report all attributes set on file")),
2020
OPT_BOOLEAN(0, "cached", &cached_attrs, N_("use .gitattributes only from the index")),
2121
OPT_BOOLEAN(0 , "stdin", &stdin_paths, N_("read file names from stdin")),
22-
OPT_BOOLEAN('z', NULL, &null_term_line,
23-
N_("input paths are terminated by a null character")),
22+
OPT_BOOLEAN('z', NULL, &nul_term_line,
23+
N_("input paths are terminated by a NUL character")),
2424
OPT_END()
2525
};
2626

@@ -65,7 +65,7 @@ static void check_attr_stdin_paths(const char *prefix, int cnt,
6565
struct git_attr_check *check)
6666
{
6767
struct strbuf buf, nbuf;
68-
int line_termination = null_term_line ? 0 : '\n';
68+
int line_termination = nul_term_line ? 0 : '\n';
6969

7070
strbuf_init(&buf, 0);
7171
strbuf_init(&nbuf, 0);

0 commit comments

Comments
 (0)