commit | a9d52e3b7925ef119b5d0d9fca14faac634effb0 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jul 31 16:44:19 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jul 31 16:44:19 2010 +0200 |
tree | 151c52ad2e282b8e264aee2fc7af3db76d8c2071 | |
parent | a26559b553079c3959ee142a010b2e000c180323 [diff] [blame] |
Fixes for coverity warnings.
diff --git a/src/misc2.c b/src/misc2.c index 6b9ffe1..96813a4 100644 --- a/src/misc2.c +++ b/src/misc2.c
@@ -4533,8 +4533,9 @@ * This is needed if the parameter path is fully qualified. */ search_ctx->ffsc_start_dir = vim_strsave(search_ctx->ffsc_fix_path); - if (search_ctx->ffsc_start_dir) - search_ctx->ffsc_fix_path[0] = NUL; + if (search_ctx->ffsc_start_dir == NULL) + goto error_return; + search_ctx->ffsc_fix_path[0] = NUL; } /* create an absolute path */