]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.438
- new
[packages/vim.git] / 7.2.438
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.438
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.438 (after 7.2.427)
11 Problem:    "vim -r" crashes.
12 Solution:   Don't use NULL pointer argument.
13 Files:      src/memline.c
14
15
16 *** ../vim-7.2.437/src/memline.c        2010-05-14 17:52:35.000000000 +0200
17 --- src/memline.c       2010-05-25 21:36:01.000000000 +0200
18 ***************
19 *** 1404,1418 ****
20       int               i;
21       char_u    *dirp;
22       char_u    *dir_name;
23 !     char_u    *fname_res = *fname;
24   #ifdef HAVE_READLINK
25       char_u    fname_buf[MAXPATHL];
26   
27       /* Expand symlink in the file name, because the swap file is created with
28        * the actual file instead of with the symlink. */
29       if (resolve_symlink(*fname, fname_buf) == OK)
30         fname_res = fname_buf;
31   #endif
32   
33       if (list)
34       {
35 --- 1404,1425 ----
36       int               i;
37       char_u    *dirp;
38       char_u    *dir_name;
39 !     char_u    *fname_res = NULL;
40   #ifdef HAVE_READLINK
41       char_u    fname_buf[MAXPATHL];
42 + #endif
43   
44 +     if (fname != NULL)
45 +     {
46 + #ifdef HAVE_READLINK
47       /* Expand symlink in the file name, because the swap file is created with
48        * the actual file instead of with the symlink. */
49       if (resolve_symlink(*fname, fname_buf) == OK)
50         fname_res = fname_buf;
51 +     else
52   #endif
53 +       fname_res = *fname;
54 +     }
55   
56       if (list)
57       {
58 *** ../vim-7.2.437/src/version.c        2010-05-21 13:08:51.000000000 +0200
59 --- src/version.c       2010-05-25 21:30:12.000000000 +0200
60 ***************
61 *** 683,684 ****
62 --- 683,686 ----
63   {   /* Add new patch number below this line */
64 + /**/
65 +     438,
66   /**/
67
68 -- 
69 A fool learns from his mistakes, a wise man from someone else's.
70
71  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
72 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
73 \\\        download, build and distribute -- http://www.A-A-P.org        ///
74  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.036621 seconds and 3 git commands to generate.