X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=ptable.h;h=c694620cf669a8fe2e8442ebdc4dd39cbb2e71c5;hp=07a755198ff6b762a04cbb89493d93b3140cb2f5;hb=6e9765def6efaf02330bf276fc8006e13769d035;hpb=4c2bd13c1fbd960115c9c623791811d5db1112f5 diff --git a/ptable.h b/ptable.h index 07a7551..c694620 100644 --- a/ptable.h +++ b/ptable.h @@ -1,4 +1,4 @@ -/* This file is part of the Lexical-Types Perl module. +/* This file is part of the Lexical::Types Perl module. * See http://search.cpan.org/dist/Lexical-Types/ */ /* This is a pointer table implementation essentially copied from the ptr_table @@ -155,7 +155,7 @@ STATIC void PTABLE_PREFIX(_store)(pPTBL_ ptable * const t, const void * const ke void *oldval = ent->val; PTABLE_VAL_FREE(oldval); ent->val = val; - } else { + } else if (val) { const UV i = PTABLE_HASH(key) & t->max; ent = PerlMemShared_malloc(sizeof *ent); ent->key = key;