diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 19:56:38 -0700 |
| commit | 3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch) | |
| tree | 1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/object.c | |
| parent | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff) | |
| download | libgit2-3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e.tar.gz | |
Remove old and unused error codes
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object.c b/src/object.c index 979fb40ca..8e8eac4e3 100644 --- a/src/object.c +++ b/src/object.c @@ -62,8 +62,7 @@ static int create_object(git_object **object_out, git_otype type) case GIT_OBJ_BLOB: case GIT_OBJ_TREE: object = git__malloc(git_object__size(type)); - if (object == NULL) - return GIT_ENOMEM; + GITERR_CHECK_ALLOC(object); memset(object, 0x0, git_object__size(type)); break; |
