chiark / gitweb /
src/query.c: Correct assertion in free_interim
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 19 Nov 2016 17:57:10 +0000 (17:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 May 2020 19:13:57 +0000 (20:13 +0100)
commit0a214048761384524d2bfc48e792315e6a2e187d
tree464096af5fa27148dbbd0eac4a92126b04a8f6ed
parenta4fee17d011690ab8bb854df3479e250fe83448f
src/query.c: Correct assertion in free_interim

!something is always >=0.  We meant to check that the free_interim
does not free more than was allocated.

Also do the assertion before the manipulation.  That reduces the
probability that a compiler will "prove" that the assertion is not
needed, or that it will fire too late.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/query.c