MDEV-6999 Remove or deprecate unused variables
a case of uninitialized variable