summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-08 18:02:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-08 18:02:07 +0100
commit0bcb399670e2613b62785438ff9eba12d65f120f (patch)
tree865dc5aeb2a93633c642d671d02acbd50904faf1 /src
parent69cdb6ca1c515b492315c6054fadda36f28c3508 (diff)
downloadweechat-0bcb399670e2613b62785438ff9eba12d65f120f.zip
Removed compiler warning in Perl plugin on FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/plugins/scripts/perl/weechat-perl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c
index f7324dedc..149e9a77d 100644
--- a/src/plugins/scripts/perl/weechat-perl.c
+++ b/src/plugins/scripts/perl/weechat-perl.c
@@ -576,11 +576,13 @@ weechat_perl_debug_dump_cb (void *data, char *signal, char *type_data,
int
weechat_plugin_init (struct t_weechat_plugin *plugin)
{
- weechat_perl_plugin = plugin;
-
#ifndef MULTIPLICITY
char *perl_args[] = { "", "-e", "0" };
+#endif
+ weechat_perl_plugin = plugin;
+
+#ifndef MULTIPLICITY
perl_main = perl_alloc ();
if (!perl_main)