commit | 7cc96923c44bbcc541cbd211b6308d87a965f0c3 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jan 31 22:41:38 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jan 31 22:41:38 2020 +0100 |
tree | 19061800642c9fdffb808ee1b08a8d3b9cd0f7bd | |
parent | 7f829cab356d63b8e59559285593777a66bcc02b [diff] |
patch 8.2.0189: cd() with NULL argument crashes Problem: cd() with NULL argument crashes. Solution: Check for NULL. (Ken Takata, closes #5558)
diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim index 05d3877..e44b25f 100644 --- a/src/testdir/test_cd.vim +++ b/src/testdir/test_cd.vim
@@ -101,6 +101,8 @@ 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)