From 07be2f048d86dbd3aa16284d5844dbe4a74f307d Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 15 Sep 2006 18:22:18 +0000 Subject: [PATCH] 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 --- src/perl/common/Settings.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);