Fix variable uninitialized warning under macos/clang

warning: variable 't' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]