summaryrefslogtreecommitdiffstats
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
parent5e3d6ca435321c82b3e97e536549a30dc3580e17 (diff)
updated for version 7.3.108v7.3.108
Problem: Useless check for NULL when calling vim_free(). Solution: Remove the check. (Dominique Pelle)
-rw-r--r--src/eval.c6
-rw-r--r--src/ex_cmds.c2
-rw-r--r--src/os_win32.c3
-rw-r--r--src/version.c2
4 files changed, 6 insertions, 7 deletions
diff --git a/src/eval.c b/src/eval.c
index af4ba893ff..d7e8332b05 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5106,9 +5106,7 @@ eval7(arg, rettv, evaluate, want_string)
else
ret = OK;
}
-
- if (alias != NULL)
- vim_free(alias);
+ vim_free(alias);
}
*arg = skipwhite(*arg);
@@ -19807,7 +19805,7 @@ set_var(name, tv, copy)
EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
return;
}
- /* Don't allow hiding a function. When "v" is not NULL we migth be
+ /* Don't allow hiding a function. When "v" is not NULL we might be
* assigning another function to the same var, the type is checked
* below. */
if (v == NULL && function_exists(name))
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 3678083b36..3b2557efc9 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);
diff --git a/src/os_win32.c b/src/os_win32.c
index 30b725d4cf..90664e626c 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1886,8 +1886,7 @@ SaveConsoleBuffer(
cb->BufferSize.X = cb->Info.dwSize.X;
cb->BufferSize.Y = cb->Info.dwSize.Y;
NumCells = cb->BufferSize.X * cb->BufferSize.Y;
- if (cb->Buffer != NULL)
- vim_free(cb->Buffer);
+ vim_free(cb->Buffer);
cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
if (cb->Buffer == NULL)
return FALSE;
diff --git a/src/version.c b/src/version.c
index 12aa05b8f0..0ac6feb0ff 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 108,
+/**/
107,
/**/
106,