Initialize a variable caught by Valgrind. Fixes #16938 (closed).
(cherry picked from commit 273eb063)