Compiler warns about this with -Werror=maybe-uninitialized. Fixes: 3bc424a3 (cherry picked from commit 2e016b98) (cherry picked from commit a1d3764e)