diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-31 22:41:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-31 22:41:38 +0100 |
commit | 7cc96923c44bbcc541cbd211b6308d87a965f0c3 (patch) | |
tree | 19061800642c9fdffb808ee1b08a8d3b9cd0f7bd /src/testdir/test_cd.vim | |
parent | 7f829cab356d63b8e59559285593777a66bcc02b (diff) |
patch 8.2.0189: cd() with NULL argument crashesv8.2.0189
Problem: cd() with NULL argument crashes.
Solution: Check for NULL. (Ken Takata, closes #5558)
Diffstat (limited to 'src/testdir/test_cd.vim')
-rw-r--r-- | src/testdir/test_cd.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim index 05d3877c70..e44b25f0fa 100644 --- a/src/testdir/test_cd.vim +++ b/src/testdir/test_cd.vim @@ -101,6 +101,8 @@ func Test_chdir_func() call assert_fails("call chdir('dir-abcd')", 'E472:') silent! let d = chdir("dir_abcd") call assert_equal("", d) + " Should not crash + call chdir(d) only | tabonly call chdir(topdir) |