Karsten Hopp 30bf61
To: vim_dev@googlegroups.com
Karsten Hopp 30bf61
Subject: Patch 7.3.458
Karsten Hopp 30bf61
Fcc: outbox
Karsten Hopp 30bf61
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 30bf61
Mime-Version: 1.0
Karsten Hopp 30bf61
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 30bf61
Content-Transfer-Encoding: 8bit
Karsten Hopp 30bf61
------------
Karsten Hopp 30bf61
Karsten Hopp 30bf61
Patch 7.3.458
Karsten Hopp 30bf61
Problem:    Crash when calling smsg() during startup.
Karsten Hopp 30bf61
Solution:   Don't use 'shortmess' when it is not set yet.
Karsten Hopp 30bf61
Files:	    src/option.c
Karsten Hopp 30bf61
Karsten Hopp 30bf61
Karsten Hopp 30bf61
*** ../vim-7.3.457/src/option.c	2012-02-20 22:18:22.000000000 +0100
Karsten Hopp 30bf61
--- src/option.c	2012-02-26 13:14:48.000000000 +0100
Karsten Hopp 30bf61
***************
Karsten Hopp 30bf61
*** 10984,10990 ****
Karsten Hopp 30bf61
  shortmess(x)
Karsten Hopp 30bf61
      int	    x;
Karsten Hopp 30bf61
  {
Karsten Hopp 30bf61
!     return (   vim_strchr(p_shm, x) != NULL
Karsten Hopp 30bf61
  	    || (vim_strchr(p_shm, 'a') != NULL
Karsten Hopp 30bf61
  		&& vim_strchr((char_u *)SHM_A, x) != NULL));
Karsten Hopp 30bf61
  }
Karsten Hopp 30bf61
--- 10984,10991 ----
Karsten Hopp 30bf61
  shortmess(x)
Karsten Hopp 30bf61
      int	    x;
Karsten Hopp 30bf61
  {
Karsten Hopp 30bf61
!     return p_shm != NULL &&
Karsten Hopp 30bf61
! 	    (   vim_strchr(p_shm, x) != NULL
Karsten Hopp 30bf61
  	    || (vim_strchr(p_shm, 'a') != NULL
Karsten Hopp 30bf61
  		&& vim_strchr((char_u *)SHM_A, x) != NULL));
Karsten Hopp 30bf61
  }
Karsten Hopp 30bf61
*** ../vim-7.3.457/src/version.c	2012-02-29 13:49:03.000000000 +0100
Karsten Hopp 30bf61
--- src/version.c	2012-02-29 13:50:52.000000000 +0100
Karsten Hopp 30bf61
***************
Karsten Hopp 30bf61
*** 716,717 ****
Karsten Hopp 30bf61
--- 716,719 ----
Karsten Hopp 30bf61
  {   /* Add new patch number below this line */
Karsten Hopp 30bf61
+ /**/
Karsten Hopp 30bf61
+     458,
Karsten Hopp 30bf61
  /**/
Karsten Hopp 30bf61
Karsten Hopp 30bf61
-- 
Karsten Hopp 30bf61
Support your right to bare arms!  Wear short sleeves!
Karsten Hopp 30bf61
Karsten Hopp 30bf61
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 30bf61
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 30bf61
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 30bf61
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///