summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c
index 70090d12c..35f512ca4 100644
--- a/src/index.c
+++ b/src/index.c
@@ -833,10 +833,8 @@ static git_index_reuc_entry *reuc_entry_alloc(const char *path)
struct reuc_entry_internal *entry;
if (GIT_ALLOC_OVERFLOW_ADD(structlen, pathlen) ||
- GIT_ALLOC_OVERFLOW_ADD(structlen + pathlen, 1)) {
- giterr_set_oom();
+ GIT_ALLOC_OVERFLOW_ADD(structlen + pathlen, 1))
return NULL;
- }
entry = git__calloc(1, structlen + pathlen + 1);
if (!entry)