]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.438 v7.2.438
authorBram Moolenaar <Bram@vim.org>
Tue, 25 May 2010 19:37:17 +0000 (21:37 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 25 May 2010 19:37:17 +0000 (21:37 +0200)
Problem:    "vim -r" crashes.
Solution:   Don't use NULL pointer argument.

src/memline.c
src/version.c

index 74f94ed416545474f7619e53d6edab18cd746dd8..84ce2d585c1c8b40a61d758db22ef1f32e7b681c 100644 (file)
@@ -1404,15 +1404,22 @@ recover_names(fname, list, nr)
     int                i;
     char_u     *dirp;
     char_u     *dir_name;
-    char_u     *fname_res = *fname;
+    char_u     *fname_res = NULL;
 #ifdef HAVE_READLINK
     char_u     fname_buf[MAXPATHL];
+#endif
 
+    if (fname != NULL)
+    {
+#ifdef HAVE_READLINK
     /* Expand symlink in the file name, because the swap file is created with
      * the actual file instead of with the symlink. */
     if (resolve_symlink(*fname, fname_buf) == OK)
        fname_res = fname_buf;
+    else
 #endif
+       fname_res = *fname;
+    }
 
     if (list)
     {
index 7a0642a2261addfecc6a8885cd2de71f829ef501..31a49be372ad1d2b414f4e2df9e0dcf31dde8b28 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    438,
 /**/
     437,
 /**/