]> git.proxmox.com Git - libgit2.git/blobdiff - src/crlf.c
treebuilder: fix memory leaks in `write_with_buffer`
[libgit2.git] / src / crlf.c
index 5d7510ac7b223018a9c112e97422f496bd306d2e..b8ae5cda180e1a57577095db542bad8203371399 100644 (file)
@@ -218,7 +218,7 @@ static const char *line_ending(struct crlf_attrs *ca)
                return "\r\n";
 
 line_ending_error:
-       giterr_set(GITERR_INVALID, "Invalid input to line ending filter");
+       giterr_set(GITERR_INVALID, "invalid input to line ending filter");
        return NULL;
 }
 
@@ -289,6 +289,7 @@ static int crlf_check(
                ca.eol = check_eol(attr_values[1]); /* eol */
        }
        ca.auto_crlf = GIT_AUTO_CRLF_DEFAULT;
+       ca.safe_crlf = GIT_SAFE_CRLF_DEFAULT;
 
        /*
         * Use the core Git logic to see if we should perform CRLF for this file