This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch] ptr_table_store
authorDoug MacEachern <dougm@covalent.net>
Sun, 9 Jun 2002 17:07:11 +0000 (10:07 -0700)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 9 Jun 2002 23:25:48 +0000 (23:25 +0000)
Message-ID: <Pine.LNX.4.33.0206091700110.26891-100000@mako.covalent.net>

p4raw-id: //depot/perl@17154

sv.c

diff --git a/sv.c b/sv.c
index da051f7..4f38159 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -8757,7 +8757,6 @@ Perl_ptr_table_store(pTHX_ PTR_TBL_t *tbl, void *oldv, void *newv)
     for (tblent = *otblent; tblent; i=0, tblent = tblent->next) {
        if (tblent->oldval == oldv) {
            tblent->newval = newv;
-           tbl->tbl_items++;
            return;
        }
     }