Fix uninitialized variable in dshash.c.

Andres Freund <andres@anarazel.de>

Commit: 0fb9e4ace5ce4d479d839a720f32b99fdc87f455
Author: Andres Freund <andres@anarazel.de>
Date: 2017-09-19T00:43:37Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/lib/dshash.c modified +9 −0

Discussion