diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-31 17:24:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-31 17:24:34 +0000 |
commit | cf6db12b45410d62d1d8568c336c79f938bf3310 (patch) | |
tree | 068a3404c3317fd684ce2bed76033a5cb0ba2fee /hv.c | |
parent | 2e58978ba658da6c974603284c681a91f2905990 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |