Karsten Hopp ffd324
To: vim-dev@vim.org
Karsten Hopp ffd324
Subject: Patch 7.2.287
Karsten Hopp ffd324
Fcc: outbox
Karsten Hopp ffd324
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ffd324
Mime-Version: 1.0
Karsten Hopp ffd324
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ffd324
Content-Transfer-Encoding: 8bit
Karsten Hopp ffd324
------------
Karsten Hopp ffd324
Karsten Hopp ffd324
Patch 7.2.287
Karsten Hopp ffd324
Problem:    Warning from gcc 3.4 about uninitialized variable.
Karsten Hopp ffd324
Solution:   Move assignment outside of #ifdef.
Karsten Hopp ffd324
Files:	    src/if_perl.xs
Karsten Hopp ffd324
Karsten Hopp ffd324
Karsten Hopp ffd324
*** ../vim-7.2.286/src/if_perl.xs	2009-07-14 16:05:14.000000000 +0200
Karsten Hopp ffd324
--- src/if_perl.xs	2009-11-11 12:29:32.000000000 +0100
Karsten Hopp ffd324
***************
Karsten Hopp ffd324
*** 720,727 ****
Karsten Hopp ffd324
  #ifdef HAVE_SANDBOX
Karsten Hopp ffd324
      if (sandbox)
Karsten Hopp ffd324
      {
Karsten Hopp ffd324
  # ifndef MAKE_TEST  /* avoid a warning for unreachable code */
Karsten Hopp ffd324
! 	if ((safe = perl_get_sv( "VIM::safe", FALSE )) == NULL || !SvTRUE(safe))
Karsten Hopp ffd324
  	    EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
Karsten Hopp ffd324
  	else
Karsten Hopp ffd324
  # endif
Karsten Hopp ffd324
--- 720,728 ----
Karsten Hopp ffd324
  #ifdef HAVE_SANDBOX
Karsten Hopp ffd324
      if (sandbox)
Karsten Hopp ffd324
      {
Karsten Hopp ffd324
+ 	safe = perl_get_sv( "VIM::safe", FALSE );
Karsten Hopp ffd324
  # ifndef MAKE_TEST  /* avoid a warning for unreachable code */
Karsten Hopp ffd324
! 	if (safe == NULL || !SvTRUE(safe))
Karsten Hopp ffd324
  	    EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
Karsten Hopp ffd324
  	else
Karsten Hopp ffd324
  # endif
Karsten Hopp ffd324
*** ../vim-7.2.286/src/version.c	2009-11-11 14:21:48.000000000 +0100
Karsten Hopp ffd324
--- src/version.c	2009-11-11 14:44:49.000000000 +0100
Karsten Hopp ffd324
***************
Karsten Hopp ffd324
*** 683,684 ****
Karsten Hopp ffd324
--- 683,686 ----
Karsten Hopp ffd324
  {   /* Add new patch number below this line */
Karsten Hopp ffd324
+ /**/
Karsten Hopp ffd324
+     287,
Karsten Hopp ffd324
  /**/
Karsten Hopp ffd324
Karsten Hopp ffd324
-- 
Karsten Hopp ffd324
The most powerful force in the universe is gossip.
Karsten Hopp ffd324
Karsten Hopp ffd324
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ffd324
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ffd324
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ffd324
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///