mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Don't crash when trying to bless NULLs
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1645 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
00f7246d7c
commit
338e58cbad
@ -28,5 +28,5 @@ T_IrssiObj
|
||||
$arg = irssi_bless((SERVER_REC *)$var);
|
||||
|
||||
T_PlainObj
|
||||
$arg = irssi_bless_plain(\"$type\", $var);
|
||||
$arg = plain_bless($var, \"$type\");
|
||||
|
||||
|
@ -35,5 +35,5 @@ T_DccObj
|
||||
$arg = dcc_bless((DCC_REC *)$var);
|
||||
|
||||
T_PlainObj
|
||||
$arg = irssi_bless_plain(\"$type\", $var);
|
||||
$arg = plain_bless($var, \"$type\");
|
||||
|
||||
|
@ -124,7 +124,7 @@ static void perl_call_signal(const char *func, int signal_id,
|
||||
perlarg = irssi_bless((SERVER_REC *) arg);
|
||||
} else {
|
||||
/* blessed object */
|
||||
perlarg = irssi_bless_plain(rec->args[n], arg);
|
||||
perlarg = plain_bless(rec->args[n], arg);
|
||||
}
|
||||
XPUSHs(sv_2mortal(perlarg));
|
||||
}
|
||||
|
@ -12,5 +12,5 @@ T_PlainObj
|
||||
OUTPUT
|
||||
|
||||
T_PlainObj
|
||||
$arg = irssi_bless_plain(\"$type\", $var);
|
||||
$arg = plain_bless($var, \"$type\");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user