Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-03 06:56:38 +0400
committerVicent Martí <tanoku@gmail.com>2012-05-03 06:56:38 +0400
commit3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch)
tree1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/crlf.c
parentb02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff)
Remove old and unused error codes
Diffstat (limited to 'src/crlf.c')
-rw-r--r--src/crlf.c3
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;