summaryrefslogtreecommitdiff
path: root/src/perl/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl/common')
-rw-r--r--src/perl/common/Settings.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/perl/common/Settings.xs b/src/perl/common/Settings.xs
index 684b7718..a9bdd11d 100644
--- a/src/perl/common/Settings.xs
+++ b/src/perl/common/Settings.xs
@@ -72,9 +72,9 @@ PROTOTYPES: ENABLE
SV *
settings_get_str(key)
char *key
-CODE:
+PREINIT:
const char *str;
-
+CODE:
str = settings_get_str(key);
RETVAL = new_pv(str);
if (is_utf8())