vendor/libgit2/src/crlf.c in rugged-0.22.0b5 vs vendor/libgit2/src/crlf.c in rugged-0.22.1b1

- old
+ new

@@ -343,9 +343,11 @@ } git_filter *git_crlf_filter_new(void) { struct crlf_filter *f = git__calloc(1, sizeof(struct crlf_filter)); + if (f == NULL) + return NULL; f->f.version = GIT_FILTER_VERSION; f->f.attributes = "crlf eol text"; f->f.initialize = NULL; f->f.shutdown = git_filter_free;