]>
Commit | Line | Data |
---|---|---|
5a088057 KK |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.730 | |
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.3.730 | |
11 | Problem: Crash in PHP file when using syntastic. (Ike Devolder) | |
12 | Solution: Avoid using NULL pointer. (Christian Brabandt) | |
13 | Files: src/quickfix.c | |
14 | ||
15 | ||
16 | *** ../vim-7.3.729/src/quickfix.c 2012-11-20 17:55:06.000000000 +0100 | |
17 | --- src/quickfix.c 2012-11-28 15:20:21.000000000 +0100 | |
18 | *************** | |
19 | *** 898,908 **** | |
20 | * way with ":grep'. | |
21 | */ | |
22 | while (qi->qf_listcount > qi->qf_curlist + 1) | |
23 | - { | |
24 | - if (wp != NULL && wp->w_llist == qi) | |
25 | - wp->w_llist = NULL; | |
26 | qf_free(qi, --qi->qf_listcount); | |
27 | - } | |
28 | ||
29 | /* | |
30 | * When the stack is full, remove to oldest entry | |
31 | --- 898,904 ---- | |
32 | *************** | |
33 | *** 910,917 **** | |
34 | */ | |
35 | if (qi->qf_listcount == LISTCOUNT) | |
36 | { | |
37 | - if (wp != NULL && wp->w_llist == qi) | |
38 | - wp->w_llist = NULL; | |
39 | qf_free(qi, 0); | |
40 | for (i = 1; i < LISTCOUNT; ++i) | |
41 | qi->qf_lists[i - 1] = qi->qf_lists[i]; | |
42 | --- 906,911 ---- | |
43 | *************** | |
44 | *** 2135,2143 **** | |
45 | while (qi->qf_lists[idx].qf_count) | |
46 | { | |
47 | qfp = qi->qf_lists[idx].qf_start->qf_next; | |
48 | ! vim_free(qi->qf_lists[idx].qf_start->qf_text); | |
49 | ! vim_free(qi->qf_lists[idx].qf_start->qf_pattern); | |
50 | ! vim_free(qi->qf_lists[idx].qf_start); | |
51 | qi->qf_lists[idx].qf_start = qfp; | |
52 | --qi->qf_lists[idx].qf_count; | |
53 | } | |
54 | --- 2129,2140 ---- | |
55 | while (qi->qf_lists[idx].qf_count) | |
56 | { | |
57 | qfp = qi->qf_lists[idx].qf_start->qf_next; | |
58 | ! if (qi->qf_lists[idx].qf_title != NULL) | |
59 | ! { | |
60 | ! vim_free(qi->qf_lists[idx].qf_start->qf_text); | |
61 | ! vim_free(qi->qf_lists[idx].qf_start->qf_pattern); | |
62 | ! vim_free(qi->qf_lists[idx].qf_start); | |
63 | ! } | |
64 | qi->qf_lists[idx].qf_start = qfp; | |
65 | --qi->qf_lists[idx].qf_count; | |
66 | } | |
67 | *** ../vim-7.3.729/src/version.c 2012-11-24 13:38:56.000000000 +0100 | |
68 | --- src/version.c 2012-11-28 15:16:16.000000000 +0100 | |
69 | *************** | |
70 | *** 727,728 **** | |
71 | --- 727,730 ---- | |
72 | { /* Add new patch number below this line */ | |
73 | + /**/ | |
74 | + 730, | |
75 | /**/ | |
76 | ||
77 | ||
78 | -- | |
79 | hundred-and-one symptoms of being an internet addict: | |
80 | 89. In addition to your e-mail address being on your business | |
81 | cards you even have your own domain. | |
82 | ||
83 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
84 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
85 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
86 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |