comparison src/undo.c @ 16627:58009c45c31c v8.1.1316

patch 8.1.1316: duplicated localtime() call commit https://github.com/vim/vim/commit/d6896731ecb74b419389f75d79210e088a9caa77 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 11 13:09:42 2019 +0200 patch 8.1.1316: duplicated localtime() call Problem: Duplicated localtime() call. Solution: Delete one.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 May 2019 13:15:05 +0200
parents 7ad3fc329e08
children ef00b6bc186b
comparison
equal deleted inserted replaced
16626:44290e98c950 16627:58009c45c31c
3115 # endif 3115 # endif
3116 struct tm *curtime; 3116 struct tm *curtime;
3117 3117
3118 if (vim_time() - tt >= 100) 3118 if (vim_time() - tt >= 100)
3119 { 3119 {
3120 curtime = localtime(&tt);
3121 # ifdef HAVE_LOCALTIME_R 3120 # ifdef HAVE_LOCALTIME_R
3122 curtime = localtime_r(&tt, &tmval); 3121 curtime = localtime_r(&tt, &tmval);
3123 # else 3122 # else
3124 curtime = localtime(&tt); 3123 curtime = localtime(&tt);
3125 # endif 3124 # endif