File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1135,14 +1135,16 @@ int tidyDocParseFile( TidyDocImpl* doc, ctmbstr filnam )
1135
1135
fin = fopen ( filnam , "rb" );
1136
1136
1137
1137
#if PRESERVE_FILE_TIMES
1138
- struct stat sbuf = {0 };
1139
- /* get last modified time */
1140
- TidyClearMemory ( & doc -> filetimes , sizeof (doc -> filetimes ) );
1141
- if ( fin && cfgBool (doc ,TidyKeepFileTimes ) &&
1142
- fstat (fileno (fin ), & sbuf ) != -1 )
1143
1138
{
1144
- doc -> filetimes .actime = sbuf .st_atime ;
1145
- doc -> filetimes .modtime = sbuf .st_mtime ;
1139
+ struct stat sbuf = { 0 };
1140
+ /* get last modified time */
1141
+ TidyClearMemory (& doc -> filetimes , sizeof (doc -> filetimes ));
1142
+ if (fin && cfgBool (doc , TidyKeepFileTimes ) &&
1143
+ fstat (fileno (fin ), & sbuf ) != -1 )
1144
+ {
1145
+ doc -> filetimes .actime = sbuf .st_atime ;
1146
+ doc -> filetimes .modtime = sbuf .st_mtime ;
1147
+ }
1146
1148
}
1147
1149
#endif
1148
1150
You can’t perform that action at this time.
0 commit comments