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:
parent
8ca4e8544b
commit
6e3870af5c
@ -74,12 +74,9 @@ settings_get_str(key)
|
|||||||
CODE:
|
CODE:
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
RETVAL = Nullsv;
|
|
||||||
str = settings_get_str(key);
|
str = settings_get_str(key);
|
||||||
if (str != NULL) {
|
RETVAL = new_pv(str);
|
||||||
RETVAL = newSVpv(str, 0);
|
SvUTF8_on(RETVAL);
|
||||||
SvUTF8_on(RETVAL);
|
|
||||||
}
|
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
RETVAL
|
RETVAL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user