Skip to content

Commit 5e12e78

Browse files
artagnongitster
authored andcommitted
sha1_file: don't mix enum with int
Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7356b51 commit 5e12e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@ static int index_mem(unsigned char *sha1, void *buf, size_t size,
26162616
if ((type == OBJ_BLOB) && path) {
26172617
struct strbuf nbuf = STRBUF_INIT;
26182618
if (convert_to_git(path, buf, size, &nbuf,
2619-
write_object ? safe_crlf : 0)) {
2619+
write_object ? safe_crlf : SAFE_CRLF_FALSE)) {
26202620
buf = strbuf_detach(&nbuf, &size);
26212621
re_allocated = 1;
26222622
}

0 commit comments

Comments
 (0)