Commit cc24fb41 authored by Tom Lane's avatar Tom Lane

Avoid uninitialized bits in the result of QTN2QT().

Found with additional valgrind testing.

Noah Misch
parent 59a4a571
...@@ -336,7 +336,7 @@ QTN2QT(QTNode *in) ...@@ -336,7 +336,7 @@ QTN2QT(QTNode *in)
cntsize(in, &sumlen, &nnode); cntsize(in, &sumlen, &nnode);
len = COMPUTESIZE(nnode, sumlen); len = COMPUTESIZE(nnode, sumlen);
out = (TSQuery) palloc(len); out = (TSQuery) palloc0(len);
SET_VARSIZE(out, len); SET_VARSIZE(out, len);
out->size = nnode; out->size = nnode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment