summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2008-10-24 21:41:36 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2008-10-24 21:41:36 +0000
commitb61433a9ad8e0c9bd78643b0e98c119904617002 (patch)
treef8940ab471d62275509e16dccc0210688f9c8b57 /perl.c
parentbef8a12803580c2fb97a03ebe6e7df3e52cd10bf (diff)
downloadperl-b61433a9ad8e0c9bd78643b0e98c119904617002.tar.gz
Make C++ compilers happy #2: const POD without initializer
is an error for g++, even when static. p4raw-id: //depot/perl@34575
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index ba5a208523..c959815f69 100644
--- a/perl.c
+++ b/perl.c
@@ -662,7 +662,7 @@ perl_destruct(pTHXx)
int f;
const char *where;
/* Our success message is an integer 0, and a char 0 */
- static const char success[sizeof(int) + 1];
+ static const char success[sizeof(int) + 1] = {0};
close(fd[0]);