summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-31 16:44:19 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-31 16:44:19 +0200
commita9d52e3b7925ef119b5d0d9fca14faac634effb0 (patch)
tree151c52ad2e282b8e264aee2fc7af3db76d8c2071 /src/ex_getln.c
parenta26559b553079c3959ee142a010b2e000c180323 (diff)
downloadvim-a9d52e3b7925ef119b5d0d9fca14faac634effb0.zip
Fixes for coverity warnings.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index b292f6391..790d5315a 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3780,7 +3780,7 @@ vim_strsave_fnameescape(fname, shell)
/* '>' and '+' are special at the start of some commands, e.g. ":edit" and
* ":write". "cd -" has a special meaning. */
- if (*p == '>' || *p == '+' || (*p == '-' && p[1] == NUL))
+ if (p != NULL && (*p == '>' || *p == '+' || (*p == '-' && p[1] == NUL)))
escape_fname(&p);
return p;