1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Simplify using new_pv.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4367 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2006-09-19 13:15:48 +00:00 committed by exg
parent 8ca4e8544b
commit 6e3870af5c

View File

@ -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);
RETVAL = new_pv(str);
SvUTF8_on(RETVAL);
}
OUTPUT:
RETVAL