fix use of uninitialized value in lc() error in 5.12