trim.c: avoid zero size xnrealloc memory allocation
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 28 Jun 2020 19:51:09 +0000 (21:51 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 28 Jun 2020 19:55:19 +0000 (21:55 +0200)
commite2039bc0694b89d26065899d9ed20f9bb42426f4
treea000e87dabacae0b2267f591908a9872e3cbde9e
parenta79bd621c1a9c91f84c39ddfda501de63aa2697e
trim.c: avoid zero size xnrealloc memory allocation

Without the patch the regression fails on test

GET with /KEEP=ALL crashes -- uncompressed

when I compile with -fsanitize=address on MacOS. The reason
is that xnrealloc is called with a zero size allocation. I
simply avoid this, although it might be perfectly o.k. to do so.
src/language/data-io/trim.c