]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix uninitialized variable in dshash.c.
authorAndres Freund <andres@anarazel.de>
Tue, 19 Sep 2017 00:43:37 +0000 (17:43 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 19 Sep 2017 00:43:37 +0000 (17:43 -0700)
commit0fb9e4ace5ce4d479d839a720f32b99fdc87f455
tree5d3ba82f4b6cb1f0619dd0771a62b4b18ba0ab5c
parenta1924a4ea29399111e5155532ca24c9c51d3c82d
Fix uninitialized variable in dshash.c.

A bugfix for commit 8c0d7bafad36434cb08ac2c78e69ae72c194ca20.  The code
would have crashed if hashtable->size_log2 ever had the same value as
hashtable->control->size_log2 by coincidence.

Per Valgrind.

Author: Thomas Munro
Reported-By: Tomas Vondra
Discussion: https://postgr.es/m/e72fb33c-4f31-f276-e972-263d9b59554d%402ndquadrant.com
src/backend/lib/dshash.c