jsonapi: fully initialize dummy lexer Valgrind reports that checks on lex->inc_state are undefined for the "dummy lexer" used for incremental parsing, since it's only partially initialized on the stack. This was introduced in 0785d1b8b2. Zero-initialize the whole struct.
Author: Jacob Champion <jacob.champ...@enterprisedb.com> Reported-by: Alexander Lakhin <exclus...@gmail.com> Discussion: https://www.postgresql.org/message-id/CAOYmi+n9QWr4gsAADZc6qFQjFViXQYVk=gby_evxuqsgpjc...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/41b023946dfd20acbc4f3b14650a032eb46f5216 Modified Files -------------- src/common/jsonapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)