summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2006-09-15 18:22:18 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-09-15 18:22:18 +0000
commit07be2f048d86dbd3aa16284d5844dbe4a74f307d (patch)
tree559b251f1b2a67556d944f2e5f32725f998c2c62 /src
parent9c835d33b55b416bab37187ad68a2753dd4c1090 (diff)
downloadirssi-07be2f048d86dbd3aa16284d5844dbe4a74f307d.zip
Fix Irssi::settings_get_str to return Nullsv when settings_get_str returns NULL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4351 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/perl/common/Settings.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perl/common/Settings.xs b/src/perl/common/Settings.xs
index 378e0c59..5ba14ab0 100644
--- a/src/perl/common/Settings.xs
+++ b/src/perl/common/Settings.xs
@@ -74,7 +74,7 @@ settings_get_str(key)
CODE:
const char *str;
- RETVAL = NULL;
+ RETVAL = Nullsv;
str = settings_get_str(key);
if (str != NULL) {
RETVAL = newSVpv(str, 0);