aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2014-06-20 21:27:57 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-07-20 04:49:38 -0400
commitc7eb8c5cd7efb12a8096418196408a60053ebc62 (patch)
treee3694807afa8d5a8b2da04e0f73755a9eaa146cb /src/nvim/buffer.c
parent1b932cbfec50ee2eddd8397df80efd1797efd2c8 (diff)
downloadrneovim-c7eb8c5cd7efb12a8096418196408a60053ebc62.tar.gz
rneovim-c7eb8c5cd7efb12a8096418196408a60053ebc62.tar.bz2
rneovim-c7eb8c5cd7efb12a8096418196408a60053ebc62.zip
coverity/62610: Remove dead code from setfname()
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 4f7b8407b4..4bea05441c 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -2219,10 +2219,6 @@ setfname (
close_buffer(NULL, obuf, DOBUF_WIPE, FALSE);
}
sfname = vim_strsave(sfname);
- if (ffname == NULL) {
- free(sfname);
- return FAIL;
- }
#ifdef USE_FNAME_CASE
fname_case(sfname, 0); /* set correct case for short file name */
#endif