summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-02 19:56:38 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-02 19:56:38 -0700
commit3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e (patch)
tree1774677db7e5f0e33c3ab3967d64e2c95a631a5e /src/config.c
parentb02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (diff)
downloadlibgit2-3fbcac89c47cb66ea193f66da6d93d1c36ed0f5e.tar.gz
Remove old and unused error codes
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index 4c971924c..0ab0cd424 100644
--- a/src/config.c
+++ b/src/config.c
@@ -59,8 +59,7 @@ int git_config_new(git_config **out)
git_config *cfg;
cfg = git__malloc(sizeof(git_config));
- if (cfg == NULL)
- return GIT_ENOMEM;
+ GITERR_CHECK_ALLOC(cfg);
memset(cfg, 0x0, sizeof(git_config));
@@ -221,7 +220,7 @@ int git_config_parse_bool(int *out, const char *value)
return 0;
}
- return GIT_EINVALIDTYPE;
+ return -1;
}
static int parse_int64(int64_t *out, const char *value)