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