comparison th_string.c @ 683:d8738bfad0a8

Nullify the strelems when freed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2020 21:31:14 +0200
parents 39c82d877251
children 5a7254b78614
comparison
equal deleted inserted replaced
682:527a4d29d384 683:d8738bfad0a8
682 { 682 {
683 th_free(ctx->elems[n]); 683 th_free(ctx->elems[n]);
684 } 684 }
685 685
686 th_free(ctx->elems); 686 th_free(ctx->elems);
687 ctx->elems = NULL;
688 ctx->nelems = 0;
687 } 689 }
688 } 690 }
689 691
690 692
691 /* Find next non-whitespace character in string. 693 /* Find next non-whitespace character in string.