ncurses/nc-cui: fix unreferenced assertion variable