summaryrefslogtreecommitdiff
path: root/src/perl/textui/Statusbar.xs
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl/textui/Statusbar.xs')
-rw-r--r--src/perl/textui/Statusbar.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/perl/textui/Statusbar.xs b/src/perl/textui/Statusbar.xs
index 522a93ee..d1241ae1 100644
--- a/src/perl/textui/Statusbar.xs
+++ b/src/perl/textui/Statusbar.xs
@@ -1,3 +1,4 @@
+#define PERL_NO_GET_CONTEXT
#include "module.h"
static GHashTable *perl_sbar_defs;
@@ -77,7 +78,7 @@ static void perl_statusbar_event(char *function, SBAR_ITEM_REC *item,
/* make sure we don't get back here */
script_unregister_statusbars(script);
}
- signal_emit("script error", 2, script, SvPV(ERRSV, PL_na));
+ signal_emit("script error", 2, script, SvPV_nolen(ERRSV));
} else {
/* min_size and max_size can be changed, move them to SBAR_ITEM_REC */
hv = hvref(item_sv);