1
0
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:
Timo Sirainen 2001-07-24 22:21:48 +00:00 committed by cras
parent 00f7246d7c
commit 338e58cbad
4 changed files with 4 additions and 4 deletions

View File

@ -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\");

View File

@ -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\");

View File

@ -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));
}

View File

@ -12,5 +12,5 @@ T_PlainObj
OUTPUT
T_PlainObj
$arg = irssi_bless_plain(\"$type\", $var);
$arg = plain_bless($var, \"$type\");