slang: fix possible uninitialized variable usage