fix compile warning:
may be used uninitialized in this function