summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-05 21:48:14 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-05 21:48:14 +0000
commit53180ce2e7b496306012316ca220fea978576a8c (patch)
treee52d6164116de32e335dcaed29e9d947c9cc7249 /src/ex_cmds2.c
parentdfb9ac00215670dedfd1fb7c1bb54195e9a929a5 (diff)
downloadvim-53180ce2e7b496306012316ca220fea978576a8c.zip
updated for version 7.0103
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 0eac58bda..b3faec86c 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1186,9 +1186,9 @@ script_dump_profile(fd)
int
prof_def_func()
{
- scriptitem_T *si = &SCRIPT_ITEM(current_SID);
-
- return si->sn_pr_force;
+ if (current_SID > 0)
+ return SCRIPT_ITEM(current_SID).sn_pr_force;
+ return FALSE;
}
# endif