env: prefer xpalloc to x2nrealloc
commit7e86be8dbb62441430a252ab759cec3e85b4afdd
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Nov 2024 00:21:15 +0000 (6 16:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (8 23:41 -0800)
treeff9b8f9058fe60faa312706bc55210504db08033
parentff9b85970b825cfa4bc46b5debaa1a52b896568c
env: prefer xpalloc to x2nrealloc

* src/env.c (usvars_alloc): Use idx_t for size.
(append_unset_var): Use xpalloc instead of x2nrealloc.
src/env.c