]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.108 v7.3.108
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Feb 2011 12:48:53 +0000 (13:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Feb 2011 12:48:53 +0000 (13:48 +0100)
Problem:    Useless check for NULL when calling vim_free().
Solution:   Remove the check. (Dominique Pelle)

src/eval.c
src/ex_cmds.c
src/os_win32.c
src/version.c

index af4ba893ff54d589f281ed5168b7c65d865ea95b..d7e8332b05440221174adc13cbf723489517cf28 100644 (file)
@@ -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))
index 3678083b36a7604d5fdc262ea8d17f56c28ca8e8..3b2557efc9555c3121e4fa6a762ca55a31fdfac7 100644 (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);
index 30b725d4cfb43c3914b81e58f7a941c42403f08c..90664e626cb90575321b1ff84601237806771f5f 100644 (file)
@@ -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;
index 12aa05b8f07797566644aed5728d0b2ef76cb82d..0ac6feb0ffa1445f99ce27a4a75e0e9152bfc041 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    108,
 /**/
     107,
 /**/