aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-07 22:28:33 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-11 12:57:59 -0300
commitf6b0e335e1f638e3c2d97e6886976d28d3798c32 (patch)
treec44159f894a036baa9e880f53cf3a2c3ba36adb7 /src/path.c
parent457bb2615154946d273d75e07f5d5a936f50ede0 (diff)
downloadrneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.gz
rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.bz2
rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.zip
Remove OOM error handling code after ga_grow() calls
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/path.c b/src/path.c
index 49ac84506f..d2b52ee93e 100644
--- a/src/path.c
+++ b/src/path.c
@@ -665,9 +665,7 @@ static void expand_path_option(char_u *curdir, garray_T *gap)
simplify_filename(buf);
}
- if (ga_grow(gap, 1) == FAIL)
- break;
-
+ ga_grow(gap, 1);
p = vim_strsave(buf);
if (p == NULL)
@@ -1231,8 +1229,7 @@ addfile (
return;
/* Make room for another item in the file list. */
- if (ga_grow(gap, 1) == FAIL)
- return;
+ ga_grow(gap, 1);
p = alloc((unsigned)(STRLEN(f) + 1 + isdir));