Fix use of uninitialized variable in rangstr