From: Nicholas Clark Date: Sat, 31 Dec 2005 17:24:34 +0000 (+0000) Subject: Turn a for loop that's almost a while into an honest-to-goodness while. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf6db12b45410d62d1d8568c336c79f938bf3310;p=p5sagit%2Fp5-mst-13.2.git Turn a for loop that's almost a while into an honest-to-goodness while. p4raw-id: //depot/perl@26552 --- diff --git a/hv.c b/hv.c index 69c951c..918404c 100644 --- a/hv.c +++ b/hv.c @@ -1610,9 +1610,9 @@ Perl_hv_clear_placeholders(pTHX_ HV *hv) /* Loop down the linked list heads */ bool first = 1; HE **oentry = &(HvARRAY(hv))[i]; - HE *entry = *oentry; + HE *entry; - for (; entry; entry = *oentry) { + while ((entry = *oentry)) { if (HeVAL(entry) == &PL_sv_placeholder) { *oentry = HeNEXT(entry); if (first && !*oentry)