073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.334
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.334 (after 7.4.330)
073263
Problem:    Unitialized variables, causing some problems.
073263
Solution:   Initialize the variables. (Dominique Pelle)
073263
Files:	    src/screen.c, src/window.c
073263
073263
073263
*** ../vim-7.4.333/src/screen.c	2014-06-17 23:17:56.489376113 +0200
073263
--- src/screen.c	2014-06-18 21:16:23.560368846 +0200
073263
***************
073263
*** 7363,7369 ****
073263
      match_T	    *shl;	/* points to search_hl or a match */
073263
      linenr_T	    lnum;
073263
      colnr_T	    mincol;	/* minimal column for a match */
073263
!     matchitem_T	    *cur;	/* to retrieve match postions if any */
073263
  {
073263
      linenr_T	l;
073263
      colnr_T	matchcol;
073263
--- 7363,7369 ----
073263
      match_T	    *shl;	/* points to search_hl or a match */
073263
      linenr_T	    lnum;
073263
      colnr_T	    mincol;	/* minimal column for a match */
073263
!     matchitem_T	    *cur;	/* to retrieve match positions if any */
073263
  {
073263
      linenr_T	l;
073263
      colnr_T	matchcol;
073263
***************
073263
*** 7458,7466 ****
073263
  	    }
073263
  	}
073263
  	else if (cur != NULL)
073263
- 	{
073263
  	    nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol);
073263
! 	}
073263
  	if (nmatched == 0)
073263
  	{
073263
  	    shl->lnum = 0;		/* no match found */
073263
--- 7458,7466 ----
073263
  	    }
073263
  	}
073263
  	else if (cur != NULL)
073263
  	    nmatched = next_search_hl_pos(shl, lnum, &(cur->pos), matchcol);
073263
! 	else
073263
! 	    nmatched = 0;
073263
  	if (nmatched == 0)
073263
  	{
073263
  	    shl->lnum = 0;		/* no match found */
073263
*** ../vim-7.4.333/src/window.c	2014-06-17 17:48:21.784628008 +0200
073263
--- src/window.c	2014-06-18 21:12:15.232359452 +0200
073263
***************
073263
*** 6809,6815 ****
073263
      }
073263
  
073263
      /* Build new match. */
073263
!     m = (matchitem_T *)alloc(sizeof(matchitem_T));
073263
      m->id = id;
073263
      m->priority = prio;
073263
      m->pattern = pat == NULL ? NULL : vim_strsave(pat);
073263
--- 6809,6815 ----
073263
      }
073263
  
073263
      /* Build new match. */
073263
!     m = (matchitem_T *)alloc_clear(sizeof(matchitem_T));
073263
      m->id = id;
073263
      m->priority = prio;
073263
      m->pattern = pat == NULL ? NULL : vim_strsave(pat);
073263
***************
073263
*** 6835,6841 ****
073263
  	    int		len = 1;
073263
  	    list_T	*subl;
073263
  	    listitem_T	*subli;
073263
! 	    int		error;
073263
  
073263
  	    if (li == NULL)
073263
  	    {
073263
--- 6835,6841 ----
073263
  	    int		len = 1;
073263
  	    list_T	*subl;
073263
  	    listitem_T	*subli;
073263
! 	    int		error = FALSE;
073263
  
073263
  	    if (li == NULL)
073263
  	    {
073263
*** ../vim-7.4.333/src/version.c	2014-06-17 23:17:56.493376113 +0200
073263
--- src/version.c	2014-06-18 21:14:16.516364040 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     334,
073263
  /**/
073263
073263
-- 
073263
You were lucky. We lived for three months in a brown paper bag in a 
073263
septic tank. We used to have to get up at six o'clock in the morning, 
073263
clean the bag, eat a crust of stale bread, go to work down mill for 
073263
fourteen hours a day week in-week out. When we got home, our Dad
073263
would thrash us to sleep with his belt!
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///