From d3bcd21f9c56ad29603330017e1fef6e7910189b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 25 Jan 2012 12:34:17 +0100 Subject: [PATCH] Initialize buffer to an empty string to avoid spurious uninitialized warnings --- op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op.c b/op.c index e31f742..30cc7f8 100644 --- a/op.c +++ b/op.c @@ -1189,7 +1189,7 @@ Perl_scalarvoid(pTHX_ OP *o) strnEQ(maybe_macro, "ig", 2)) useless = NULL; else { - SV * const dsv = newSV(0); + SV * const dsv = newSVpvs(""); SV* msv = sv_2mortal(Perl_newSVpvf(aTHX_ "a constant (%s)", pv_pretty(dsv, maybe_macro, SvCUR(sv), 32, NULL, NULL, -- 2.7.4