Unverified Commit 054e4c08 by Tomás Pollak Committed by GitHub

Set ctime/mtime nanosecs to 0 if USE_NSEC is not defined

parent 752006dd
......@@ -1463,6 +1463,9 @@ static void filesystem_iterator_set_current(
#if defined(GIT_USE_NSEC)
iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec;
iter->entry.mtime.nanoseconds = entry->st.st_mtime_nsec;
#else
iter->entry.ctime.nanoseconds = 0;
iter->entry.mtime.nanoseconds = 0;
#endif
iter->entry.dev = entry->st.st_dev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment