fix building failure when using -Wconditional-uninitialized