mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Bug 1014: Fix incompatible pointer type in init_perl.
The second argument of PERL_SYS_INIT3 should be a char ***
but ELinks was giving it a char *(*)[1].
Also, enlarge the array to 2 elements, so that my_argv[my_argc] == NULL
like in main(). PERL_SYS_INIT3 seems hardly documented at all so I'm
not sure this is necessary, but it shouldn't hurt.
(cherry picked from commit 8d0677e76a
)
This commit is contained in:
parent
bed84c483e
commit
5e4a565603
1
NEWS
1
NEWS
@ -316,6 +316,7 @@ To be released as 0.11.4.
|
||||
* major bug 788: don't read STRLEN n_a, which isn't initialized by
|
||||
POPpx of Perl v5.8.8 and later
|
||||
* fix query parsing in file: URIs for local CGI (was broken in 0.11.3)
|
||||
* bug 451: fix incompatible pointer type in PERL_SYS_INIT3 call
|
||||
* bug 691: don't look up bogus IPv4 addresses based on characters of a
|
||||
hostname
|
||||
* bug 712: GnuTLS works on https://www-s.uiuc.edu/[]
|
||||
|
@ -77,7 +77,8 @@ init_perl(struct module *module)
|
||||
|
||||
/* PERL_SYS_INIT3 may not be defined, it depends on the system. */
|
||||
#ifdef PERL_SYS_INIT3
|
||||
char *my_argv[] = { NULL };
|
||||
char *my_argvec[] = { NULL, NULL };
|
||||
char **my_argv = my_argvec;
|
||||
int my_argc = 0;
|
||||
|
||||
/* A hack to prevent unused variables warnings. */
|
||||
|
Loading…
Reference in New Issue
Block a user