fix build error: variable 'code' is used uninitialized

travis