pgsql: Fix uninitialized variable from commit a4d75c86b.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix uninitialized variable from commit a4d75c86b.
Date: 2021-04-11 15:46:54
Message-ID: E1lVcIY-0007OY-Jh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-04-11 17:23:01 pgsql: Add macro PGWARNING, and make PGERROR available on all platforms
Previous Message Fujii Masao 2021-04-11 15:07:02 pgsql: Avoid unnecessary table open/close in TRUNCATE command.