1
0
forked from aniani/vim

updated for version 7.2-287

This commit is contained in:
Bram Moolenaar
2009-11-11 13:45:33 +00:00
parent ef94eec644
commit 954e8c54a0
2 changed files with 4 additions and 1 deletions

View File

@@ -720,8 +720,9 @@ ex_perl(eap)
#ifdef HAVE_SANDBOX
if (sandbox)
{
safe = perl_get_sv( "VIM::safe", FALSE );
# ifndef MAKE_TEST /* avoid a warning for unreachable code */
if ((safe = perl_get_sv( "VIM::safe", FALSE )) == NULL || !SvTRUE(safe))
if (safe == NULL || !SvTRUE(safe))
EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
else
# endif