commit | 3c2d6534ef1f3f4cdde96196e966d2d1669c4c74 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Feb 01 13:48:53 2011 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Feb 01 13:48:53 2011 +0100 |
tree | dd6f5a1ad4eae360a0246af1fb240d0c09eeeeb6 | |
parent | 5e3d6ca435321c82b3e97e536549a30dc3580e17 [diff] [blame] |
updated for version 7.3.108 Problem: Useless check for NULL when calling vim_free(). Solution: Remove the check. (Dominique Pelle)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 3678083..3b2557e 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -5412,7 +5412,7 @@ vir_T *virp; int force; { - if (old_sub != NULL && force) + if (force) vim_free(old_sub); if (force || old_sub == NULL) old_sub = viminfo_readstring(virp, 1, TRUE);