1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Use PERL_SYS_INIT3 with the correct pointer type for argv.

This fixes perl crashes on startup on some machines.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4989 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2009-01-15 22:21:31 +00:00 committed by jilles
parent 57282ee557
commit d993ce7b06

View File

@ -111,7 +111,8 @@ static void xs_init(pTHX)
/* Initialize perl interpreter */
void perl_scripts_init(void)
{
char *args[] = {"", "-e", "0"};
char *argarray[] = {"", "-e", "0"};
char **args = argarray;
int argc = 3;
char *code, *use_code;