Initialize buffer to an empty string to avoid spurious uninitialized warnings
authorRafael Garcia-Suarez <rgs@consttype.org>
Wed, 25 Jan 2012 11:34:17 +0000 (12:34 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Wed, 25 Jan 2012 11:34:27 +0000 (12:34 +0100)
op.c

diff --git a/op.c b/op.c
index e31f742..30cc7f8 100644 (file)
--- 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,