diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-12-16 15:39:26 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-16 15:39:26 -0500 |
commit | 10a45846dc959f8b3ab9436f0809e90d1adf4ee4 (patch) | |
tree | b0d02669f08f94b80abcc0a8d9687ba4c8c80561 /src/nvim/ex_docmd.c | |
parent | 3a61b84543c7cd843fe60d9ec4b356fb18f6a726 (diff) | |
parent | e0b23b3d090f58c772ff0175c38afa1d5e0f1612 (diff) | |
download | rneovim-10a45846dc959f8b3ab9436f0809e90d1adf4ee4.tar.gz rneovim-10a45846dc959f8b3ab9436f0809e90d1adf4ee4.tar.bz2 rneovim-10a45846dc959f8b3ab9436f0809e90d1adf4ee4.zip |
Merge pull request #1688 from elmart/coverity-issues-1
coverity issues
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 56c8206d2a..65a0017e20 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -8543,7 +8543,9 @@ static void ex_loadview(exarg_T *eap) fname = get_view_file(*eap->arg); if (fname != NULL) { - do_source(fname, FALSE, DOSO_NONE); + if (do_source(fname, FALSE, DOSO_NONE) == FAIL) { + EMSG2(_(e_notopen), fname); + } free(fname); } } |