To: vim_dev@googlegroups.com Subject: Patch 7.4.1928 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1928 Problem: Overwriting pointer argument. Solution: Assign to what it points to. (Dominique Pelle) Files: src/fileio.c *** ../vim-7.4.1927/src/fileio.c 2016-06-09 22:52:56.199926413 +0200 --- src/fileio.c 2016-06-13 19:55:32.071390521 +0200 *************** *** 7328,7335 **** /* * 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 returned pointer is to allocated memory. * The returned pointer is NULL if no valid name was found. --- 7328,7335 ---- /* * vim_tempname(): Return a unique name that can be used for a temp file. * ! * 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,8702 **** int group; if (did_something != NULL) ! did_something = FALSE; /* * Check for a legal group name. If not, use AUGROUP_ALL. --- 8696,8702 ---- int group; if (did_something != NULL) ! *did_something = FALSE; /* * Check for a legal group name. If not, use AUGROUP_ALL. *** ../vim-7.4.1927/src/version.c 2016-06-13 19:54:18.392171818 +0200 --- src/version.c 2016-06-13 19:57:11.598335009 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1928, /**/ -- From "know your smileys": <<<:-{ Worf (Never smiles anyways, so he's a bad smiley) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///