changeset 9291:bff3cd5cf922 v7.4.1928

commit https://github.com/vim/vim/commit/76ae22fef3cb224ca7fbf97517f881e825d4d0c2 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 20:00:29 2016 +0200 patch 7.4.1928 Problem: Overwriting pointer argument. Solution: Assign to what it points to. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Jun 2016 20:15:06 +0200
parents 184a68b8089c
children 9af389ecf145
files src/fileio.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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.
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1928,
+/**/
     1927,
 /**/
     1926,