Initialize local variable, otherwise when ReaddUnselectedAddedFilesAfterCommit enabled, sometimes only first file can be re-added

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>