Fix for bnc#811842: segfault in ncurses because of uninitialized variable