c13ccfc
To: vim-dev@vim.org
c13ccfc
Subject: Patch 7.0.064
c13ccfc
Fcc: outbox
c13ccfc
From: Bram Moolenaar <Bram@moolenaar.net>
c13ccfc
Mime-Version: 1.0
c13ccfc
Content-Type: text/plain; charset=ISO-8859-1
c13ccfc
Content-Transfer-Encoding: 8bit
c13ccfc
------------
c13ccfc
c13ccfc
Patch 7.0.064
c13ccfc
Problem:    Using uninitialized variable. (Tony Mechelynck)
c13ccfc
Solution:   When not used set "temp" to zero.  Also avoid a warning for
c13ccfc
	    "files" in ins_compl_dictionaries().
c13ccfc
Files:	    src/edit.c
c13ccfc
c13ccfc
c13ccfc
*** ../vim-7.0.063/src/edit.c	Wed Aug 16 21:26:19 2006
c13ccfc
--- src/edit.c	Thu Aug 17 22:28:34 2006
c13ccfc
***************
c13ccfc
*** 2760,2765 ****
c13ccfc
--- 2760,2766 ----
c13ccfc
  	}
c13ccfc
  	else
c13ccfc
  # endif
c13ccfc
+ 	    if (count > 0)	/* avoid warning for using "files" uninit */
c13ccfc
  	{
c13ccfc
  	    ins_compl_files(count, files, thesaurus, flags,
c13ccfc
  							&regmatch, buf, &dir;;
c13ccfc
***************
c13ccfc
*** 3222,3228 ****
c13ccfc
      int	    c;
c13ccfc
  {
c13ccfc
      char_u	*ptr;
c13ccfc
-     int		temp;
c13ccfc
      int		want_cindent;
c13ccfc
      int		retval = FALSE;
c13ccfc
  
c13ccfc
--- 3223,3228 ----
c13ccfc
***************
c13ccfc
*** 3378,3383 ****
c13ccfc
--- 3378,3384 ----
c13ccfc
  	    if (compl_curr_match != NULL || compl_leader != NULL || c == Ctrl_E)
c13ccfc
  	    {
c13ccfc
  		char_u	*p;
c13ccfc
+ 		int	temp = 0;
c13ccfc
  
c13ccfc
  		/*
c13ccfc
  		 * If any of the original typed text has been changed, eg when
c13ccfc
*** ../vim-7.0.063/src/version.c	Wed Aug 16 22:03:35 2006
c13ccfc
--- src/version.c	Tue Aug 22 19:56:05 2006
c13ccfc
***************
c13ccfc
*** 668,669 ****
c13ccfc
--- 668,671 ----
c13ccfc
  {   /* Add new patch number below this line */
c13ccfc
+ /**/
c13ccfc
+     64,
c13ccfc
  /**/
c13ccfc
c13ccfc
-- 
c13ccfc
hundred-and-one symptoms of being an internet addict:
c13ccfc
200. You really believe in the concept of a "paperless" office.
c13ccfc
c13ccfc
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
c13ccfc
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
c13ccfc
\\\        download, build and distribute -- http://www.A-A-P.org        ///
c13ccfc
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///