develooper Front page | perl.perl5.porters | Postings from August 2001

[PATCH] -Wall cleanup: op.c

Thread Next
From:
Richard Soderberg
Date:
August 2, 2001 00:17
Subject:
[PATCH] -Wall cleanup: op.c
Message ID:
200108020717.AAA26895@oregonnet.com
packlen is only used initialized, however, the compiler doesn't seem to
detect that; this patch provides a default value that's overwritten later.

This stops a compile warning in opmini.c and op.c.

R.

--- op.c~	Wed Aug  1 18:53:49 2001
+++ op.c	Thu Aug  2 00:14:47 2001
@@ -3220,7 +3220,7 @@
     OP *imop;
     OP *veop;
     char *packname = Nullch;
-    STRLEN packlen;
+    STRLEN packlen = 0;
     SV *packsv;
 
     if (id->op_type != OP_CONST)

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About