summaryrefslogtreecommitdiff
path: root/src/perl/perl-core.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-11 22:39:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-11 22:39:56 +0000
commitea03650b3f495d39d46f288ce3ddd4142ff34a77 (patch)
treebba0d371f2a1d8562ad00a621652ff2d85de64c6 /src/perl/perl-core.c
parent571f3acaf8ffe4fa86679f210473d6b91019fb1f (diff)
downloadirssi-ea03650b3f495d39d46f288ce3ddd4142ff34a77.zip
Updated perl API version. Fixed irssi to behave better if the API doesn't
match (doesn't crash). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1985 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/perl-core.c')
-rw-r--r--src/perl/perl-core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/perl/perl-core.c b/src/perl/perl-core.c
index 40041127..29ce0308 100644
--- a/src/perl/perl-core.c
+++ b/src/perl/perl-core.c
@@ -141,6 +141,9 @@ void perl_scripts_init(void)
/* Destroy all perl scripts and deinitialize perl interpreter */
void perl_scripts_deinit(void)
{
+ if (my_perl == NULL)
+ return;
+
/* destroy all scripts */
while (perl_scripts != NULL)
perl_script_destroy(perl_scripts->data);
@@ -417,7 +420,7 @@ static void sig_script_error(PERL_SCRIPT_REC *script, const char *error)
}
}
-static void sig_autorun()
+static void sig_autorun(void)
{
signal_remove("irssi init finished", (SIGNAL_FUNC) sig_autorun);