diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-03 06:56:38 +0400 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-03 06:56:38 +0400 |
commit | 3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch) | |
tree | 1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/crlf.c | |
parent | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff) |
Remove old and unused error codes
Diffstat (limited to 'src/crlf.c')
-rw-r--r-- | src/crlf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crlf.c b/src/crlf.c index 8fe588a35..b495d2de0 100644 --- a/src/crlf.c +++ b/src/crlf.c @@ -216,8 +216,7 @@ int git_filter_add__crlf_to_odb(git_vector *filters, git_repository *repo, const /* If we're good, we create a new filter object and push it * into the filters array */ filter = git__malloc(sizeof(struct crlf_filter)); - if (filter == NULL) - return GIT_ENOMEM; + GITERR_CHECK_ALLOC(filter); filter->f.apply = &crlf_apply_to_odb; filter->f.do_free = NULL; |