diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2006-09-19 13:15:48 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2006-09-19 13:15:48 +0000 |
commit | 6e3870af5cbe1fa736469f0124fa83c871d7dd0a (patch) | |
tree | 495b1870652559562363d817b4634601d4dfe478 /src/perl/common | |
parent | 8ca4e8544bcd8543afcca0d0af55dc00a6921cc8 (diff) | |
download | irssi-6e3870af5cbe1fa736469f0124fa83c871d7dd0a.zip |
Simplify using new_pv.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4367 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/common')
-rw-r--r-- | src/perl/common/Settings.xs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/perl/common/Settings.xs b/src/perl/common/Settings.xs index 5ba14ab0..971b51ee 100644 --- a/src/perl/common/Settings.xs +++ b/src/perl/common/Settings.xs @@ -74,12 +74,9 @@ settings_get_str(key) CODE: const char *str; - RETVAL = Nullsv; str = settings_get_str(key); - if (str != NULL) { - RETVAL = newSVpv(str, 0); - SvUTF8_on(RETVAL); - } + RETVAL = new_pv(str); + SvUTF8_on(RETVAL); OUTPUT: RETVAL |