summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-31 17:24:34 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-31 17:24:34 +0000
commitcf6db12b45410d62d1d8568c336c79f938bf3310 (patch)
tree068a3404c3317fd684ce2bed76033a5cb0ba2fee /hv.c
parent2e58978ba658da6c974603284c681a91f2905990 (diff)
downloadperl-cf6db12b45410d62d1d8568c336c79f938bf3310.tar.gz
Turn a for loop that's almost a while into an honest-to-goodness while.
p4raw-id: //depot/perl@26552
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index 69c951cfab..918404c2de 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)