summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-03-09 11:32:56 +0100
committerportix <portix@gmx.net>2014-03-09 11:32:56 +0100
commit3d934c2b83cf130a183b15328cfa2f4cf63a90c6 (patch)
treec726f229b03c8cd86930192469dbb7ac8c5b1dd4
parentfa3590e14c5c8f28a6af1b92fa81fc297c586bd2 (diff)
downloaddwb-3d934c2b83cf130a183b15328cfa2f4cf63a90c6.zip
Fixing segfault if scripting context doesn't exist, closing #404.
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 949a8d71..d4f9341b 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -7307,7 +7307,7 @@ void
scripts_create_tab(GList *gl)
{
static gboolean applied = false;
- if (s_ctx->global_context == NULL )
+ if (s_ctx == NULL )
{
VIEW(gl)->script_wv = NULL;
return;