]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.169
- typo
[packages/vim.git] / 7.1.169
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.169
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.169
11 Problem:    Using uninitialized variable when system() fails. (Dominique
12             Pelle)
13 Solution:   Let system() return an empty string when it fails.
14 Files:      src/eval.c
15
16
17 *** ../vim-7.1.168/src/eval.c   Thu Nov  8 20:47:34 2007
18 --- src/eval.c  Fri Nov 30 21:01:26 2007
19 ***************
20 *** 15826,15832 ****
21       FILE      *fd;
22   
23       if (check_restricted() || check_secure())
24 !       return;
25   
26       if (argvars[1].v_type != VAR_UNKNOWN)
27       {
28 --- 15826,15832 ----
29       FILE      *fd;
30   
31       if (check_restricted() || check_secure())
32 !       goto done;
33   
34       if (argvars[1].v_type != VAR_UNKNOWN)
35       {
36 ***************
37 *** 15837,15843 ****
38         if ((infile = vim_tempname('i')) == NULL)
39         {
40             EMSG(_(e_notmp));
41 !           return;
42         }
43   
44         fd = mch_fopen((char *)infile, WRITEBIN);
45 --- 15837,15843 ----
46         if ((infile = vim_tempname('i')) == NULL)
47         {
48             EMSG(_(e_notmp));
49 !           goto done;
50         }
51   
52         fd = mch_fopen((char *)infile, WRITEBIN);
53 *** ../vim-7.1.168/src/version.c        Mon Dec  3 22:20:17 2007
54 --- src/version.c       Fri Dec  7 17:07:32 2007
55 ***************
56 *** 668,669 ****
57 --- 668,671 ----
58   {   /* Add new patch number below this line */
59 + /**/
60 +     169,
61   /**/
62
63 -- 
64 % cat /usr/include/sys/errno.h
65 #define EPERM           1               /* Operation not permitted */
66 #define ENOENT          2               /* No such file or directory */
67 #define ESRCH           3               /* No such process */
68 [...]
69 #define EMACS           666             /* Too many macros */
70 %
71
72  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
73 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
74 \\\        download, build and distribute -- http://www.A-A-P.org        ///
75  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.631907 seconds and 3 git commands to generate.