diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-07 22:28:33 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-11 12:57:59 -0300 |
commit | f6b0e335e1f638e3c2d97e6886976d28d3798c32 (patch) | |
tree | c44159f894a036baa9e880f53cf3a2c3ba36adb7 /src/os | |
parent | 457bb2615154946d273d75e07f5d5a936f50ede0 (diff) | |
download | rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.gz rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.tar.bz2 rneovim-f6b0e335e1f638e3c2d97e6886976d28d3798c32.zip |
Remove OOM error handling code after ga_grow() calls
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/users.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/os/users.c b/src/os/users.c index 5972e3f1e8..e7b362637b 100644 --- a/src/os/users.c +++ b/src/os/users.c @@ -26,9 +26,7 @@ int os_get_usernames(garray_T *users) while ((pw = getpwent()) != NULL) { // pw->pw_name shouldn't be NULL but just in case... if (pw->pw_name != NULL) { - if (ga_grow(users, 1) == FAIL) { - return FAIL; - } + ga_grow(users, 1); user = (char *)vim_strsave((char_u*)pw->pw_name); if (user == NULL) { return FAIL; |