]> granicus.if.org Git - vim/commitdiff
patch 8.1.1316: duplicated localtime() call v8.1.1316
authorBram Moolenaar <Bram@vim.org>
Sat, 11 May 2019 11:09:42 +0000 (13:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 May 2019 11:09:42 +0000 (13:09 +0200)
Problem:    Duplicated localtime() call.
Solution:   Delete one.

src/undo.c
src/version.c

index 2f1924ce12531c3727ea2aa045d5c4edaf88ae77..c4558d1c78d42420ee48c89efddc6c2907b4b035 100644 (file)
@@ -3117,7 +3117,6 @@ u_add_time(char_u *buf, size_t buflen, time_t tt)
 
     if (vim_time() - tt >= 100)
     {
-       curtime = localtime(&tt);
 # ifdef HAVE_LOCALTIME_R
        curtime = localtime_r(&tt, &tmval);
 # else
index 0e40f619a7aa8cbb8e8a7102444bab47dae2e521..d31e6112251111a07c803f08f7d0398127f30bd7 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1316,
 /**/
     1315,
 /**/