pgsql: Fix uninitialized variable from commit a4d75c86b. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix uninitialized variable from commit a4d75c86b.
Date
Msg-id E1lVcIY-0007OY-Jh@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix uninitialized variable from commit a4d75c86b.

The path for *exprs != NIL would misbehave, and likely crash,
since pull_varattnos expects its last argument to be valid
at call.

Found by Coverity --- we have no coverage of this path in
the regression tests.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9cb92334092fa75afc62a71243bbc1f4612ecfa4

Modified Files
--------------
src/backend/statistics/extended_stats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Avoid unnecessary table open/close in TRUNCATE command.
Next
From: Tom Lane
Date:
Subject: pgsql: Add macro PGWARNING, and make PGERROR available on all platforms