Eliminate unused variables in genKat.c; initialize a variable to avoid using it uninitialized (dlg)