]> granicus.if.org Git - postgresql/commit
Initialize unused ExprEvalStep fields.
authorAndres Freund <andres@anarazel.de>
Wed, 24 Jan 2018 07:20:02 +0000 (23:20 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 29 Jan 2018 20:01:07 +0000 (12:01 -0800)
commitfc96c6942551dafa6cb2a6000cbc9b20643e5db3
treea6612a76bf06b9faed77e2c53682db85333bc92e
parent1e1e599d6663c4a65388b40f84b2ea6b7c6e381b
Initialize unused ExprEvalStep fields.

ExecPushExprSlots didn't initialize ExprEvalStep's resvalue/resnull
steps as it didn't use them. That caused wrong valgrind warnings for
an upcoming patch, so zero-intialize.

Also zero-initialize all scratch ExprEvalStep's allocated on the
stack, to avoid issues with similar future omissions of non-critial
data.
src/backend/executor/execExpr.c