ansi: fix possible use of uninitialized variables