summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-02-01 13:48:53 +0100
committerBram Moolenaar <Bram@vim.org>2011-02-01 13:48:53 +0100
commit3c2d6534ef1f3f4cdde96196e966d2d1669c4c74 (patch)
treedd6f5a1ad4eae360a0246af1fb240d0c09eeeeb6 /src/ex_cmds.c
parent5e3d6ca435321c82b3e97e536549a30dc3580e17 (diff)
downloadvim-git-3c2d6534ef1f3f4cdde96196e966d2d1669c4c74.tar.gz
updated for version 7.3.108v7.3.108
Problem: Useless check for NULL when calling vim_free(). Solution: Remove the check. (Dominique Pelle)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 3678083b3..3b2557efc 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -5412,7 +5412,7 @@ read_viminfo_sub_string(virp, force)
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);