index: don't populate nsec values if GIT_USE_NSEC is off

This commit is contained in:
Axel Rasmussen 2015-10-01 18:35:21 -07:00
parent c7b17fb5cd
commit 973a09a4ca

View File

@ -1081,6 +1081,9 @@ void git_futils_filestamp_set_from_stat(
if (st) { if (st) {
stamp->mtime = *statmtime; stamp->mtime = *statmtime;
#if !defined(GIT_USE_NSEC)
stamp->mtime.tv_nsec = 0;
#endif
stamp->size = (git_off_t)st->st_size; stamp->size = (git_off_t)st->st_size;
stamp->ino = (unsigned int)st->st_ino; stamp->ino = (unsigned int)st->st_ino;
} else { } else {