Fix access to uninitialized variable in fill_in_stop_func