1
0
forked from aniani/vim

updated for version 7.3.108

Problem:    Useless check for NULL when calling vim_free().
Solution:   Remove the check. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2011-02-01 13:48:53 +01:00
parent 5e3d6ca435
commit 3c2d6534ef
4 changed files with 6 additions and 7 deletions

View File

@@ -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);