]> granicus.if.org Git - vim/commitdiff
patch 7.4.1928 v7.4.1928
authorBram Moolenaar <Bram@vim.org>
Mon, 13 Jun 2016 18:00:29 +0000 (20:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 13 Jun 2016 18:00:29 +0000 (20:00 +0200)
Problem:    Overwriting pointer argument.
Solution:   Assign to what it points to. (Dominique Pelle)

src/fileio.c
src/version.c

index 37b43a39a92b14ee31dcfeb7f2a8e1f3d37e9305..1ceeaa735a2e632e7cdc7d6d3fee807faddc773d 100644 (file)
@@ -7328,8 +7328,8 @@ vim_settempdir(char_u *tempdir)
 /*
  * vim_tempname(): Return a unique name that can be used for a temp file.
  *
- * The temp file is NOT garanteed to be created.  If "keep" is FALSE it is
- * garanteed to NOT be created.
+ * The temp file is NOT guaranteed to be created.  If "keep" is FALSE it is
+ * guaranteed to NOT be created.
  *
  * The returned pointer is to allocated memory.
  * The returned pointer is NULL if no valid name was found.
@@ -8696,7 +8696,7 @@ do_doautocmd(
     int                group;
 
     if (did_something != NULL)
-       did_something = FALSE;
+       *did_something = FALSE;
 
     /*
      * Check for a legal group name.  If not, use AUGROUP_ALL.
index 1323fb7d8c1e36faa40ed715408dc6f37a528b0d..516e5ff9618ea1b1845b9015d127ecb559bcbff7 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1928,
 /**/
     1927,
 /**/