You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by pg...@apache.org on 2009/06/07 23:58:48 UTC
svn commit: r782471 - /perl/modperl/branches/1.x/src/modules/perl/mod_perl.c
Author: pgollucci
Date: Sun Jun 7 21:58:47 2009
New Revision: 782471
URL: http://svn.apache.org/viewvc?rev=782471&view=rev
Log:
cleanup style and add comment
Requested by: gozer
Modified:
perl/modperl/branches/1.x/src/modules/perl/mod_perl.c
Modified: perl/modperl/branches/1.x/src/modules/perl/mod_perl.c
URL: http://svn.apache.org/viewvc/perl/modperl/branches/1.x/src/modules/perl/mod_perl.c?rev=782471&r1=782470&r2=782471&view=diff
==============================================================================
--- perl/modperl/branches/1.x/src/modules/perl/mod_perl.c (original)
+++ perl/modperl/branches/1.x/src/modules/perl/mod_perl.c Sun Jun 7 21:58:47 2009
@@ -593,10 +593,15 @@
#endif
}
+/*
+ * XXX: temp_argv is required to work around a bug in gcc
+ * present in at least FreeBSD 7.x which causes
+ * sefaults during mod_perl startup.
+ */
void perl_startup (server_rec *s, pool *p)
{
char *argv[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL };
- char **temp_argv=argv;
+ char **temp_argv = argv;
char **entries, *dstr;
int status, i, argc=1;
dPSRV(s);