]> git.draconx.ca Git - cdecl99.git/commit
Fix library error state allocation.
authorNick Bowler <nbowler@draconx.ca>
Tue, 13 Jun 2023 05:31:06 +0000 (01:31 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 14 Jun 2023 01:01:34 +0000 (21:01 -0400)
commit9abf0eb2e74d0fb3a4f652499571cb35697d3036
tree9263e03d56ee412b0b24d15653c7547aa6758f02
parent1c3b0c0e6f9339e76e42f6393e554c7dfc58e205
Fix library error state allocation.

The assignment to the thread-local state is missing both from the
failed-allocation and the resize paths of the library error reporting.

Fix that up, and add a new test case which provides coverage of at
least the realloc path.
Makefile.am
common
src/error.c
t/.gitignore
t/cdeclerr.c [new file with mode: 0644]
tests/internal.at
testsuite.at