From: Nicholas Clark Date: Tue, 7 Feb 2006 15:52:18 +0000 (+0000) Subject: Avoid gcc warning about possibly uninitialised variables. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4a772887f4f3b784d817fd0589ea0a4e83d9549;p=p5sagit%2Fp5-mst-13.2.git Avoid gcc warning about possibly uninitialised variables. p4raw-id: //depot/perl@27123 --- diff --git a/pp.c b/pp.c index 69a4e9d..08578cc 100644 --- a/pp.c +++ b/pp.c @@ -3146,9 +3146,8 @@ PP(pp_index) } } } - if (!is_index) { - tmps2 = SvPV_const(little, llen); - } + /* Don't actually need the NULL initialisation, but it keeps gcc quiet. */ + tmps2 = is_index ? NULL : SvPV_const(little, llen); tmps = SvPV_const(big, biglen); if (MAXARG < 3)