summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.2.273
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2011-04-25 13:37:00 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:45:18 +0200
commit75a4a592e5ccda30715f93563d741b83e0dcf39e (patch)
tree502f745607e77a2c4386ad38d818ddcafe81489c /source/ap/vim/patches/7.2.273
parentb76270bf9e6dd375e495fec92140a79a79415d27 (diff)
downloadcurrent-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz
current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.xz
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
Diffstat (limited to 'source/ap/vim/patches/7.2.273')
-rw-r--r--source/ap/vim/patches/7.2.273130
1 files changed, 0 insertions, 130 deletions
diff --git a/source/ap/vim/patches/7.2.273 b/source/ap/vim/patches/7.2.273
deleted file mode 100644
index ac00afaa7..000000000
--- a/source/ap/vim/patches/7.2.273
+++ /dev/null
@@ -1,130 +0,0 @@
-To: vim-dev@vim.org
-Subject: Patch 7.2.273
-Fcc: outbox
-From: Bram Moolenaar <Bram@moolenaar.net>
-Mime-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-------------
-
-Patch 7.2.273
-Problem: Crash with redir to unknown array. (Christian Brabandt)
-Solution: Don't assign the redir result when there was an error.
-Files: src/eval.c
-
-
-*** ../vim-7.2.272/src/eval.c 2009-09-30 15:15:33.000000000 +0200
---- src/eval.c 2009-11-03 12:05:07.000000000 +0100
-***************
-*** 988,1000 ****
- int err;
- typval_T tv;
-
-! /* Make sure a valid variable name is specified */
- if (!eval_isnamec1(*name))
- {
- EMSG(_(e_invarg));
- return FAIL;
- }
-
- redir_varname = vim_strsave(name);
- if (redir_varname == NULL)
- return FAIL;
---- 988,1001 ----
- int err;
- typval_T tv;
-
-! /* Catch a bad name early. */
- if (!eval_isnamec1(*name))
- {
- EMSG(_(e_invarg));
- return FAIL;
- }
-
-+ /* Make a copy of the name, it is used in redir_lval until redir ends. */
- redir_varname = vim_strsave(name);
- if (redir_varname == NULL)
- return FAIL;
-***************
-*** 1019,1024 ****
---- 1020,1026 ----
- EMSG(_(e_trailing));
- else
- EMSG(_(e_invarg));
-+ redir_endp = NULL; /* don't store a value, only cleanup */
- var_redir_stop();
- return FAIL;
- }
-***************
-*** 1037,1042 ****
---- 1039,1045 ----
- did_emsg |= save_emsg;
- if (err)
- {
-+ redir_endp = NULL; /* don't store a value, only cleanup */
- var_redir_stop();
- return FAIL;
- }
-***************
-*** 1085,1090 ****
---- 1088,1094 ----
-
- /*
- * Stop redirecting command output to a variable.
-+ * Frees the allocated memory.
- */
- void
- var_redir_stop()
-***************
-*** 1093,1106 ****
-
- if (redir_lval != NULL)
- {
-! /* Append the trailing NUL. */
-! ga_append(&redir_ga, NUL);
-
-! /* Assign the text to the variable. */
-! tv.v_type = VAR_STRING;
-! tv.vval.v_string = redir_ga.ga_data;
-! set_var_lval(redir_lval, redir_endp, &tv, FALSE, (char_u *)".");
-! vim_free(tv.vval.v_string);
-
- clear_lval(redir_lval);
- vim_free(redir_lval);
---- 1097,1114 ----
-
- if (redir_lval != NULL)
- {
-! /* If there was no error: assign the text to the variable. */
-! if (redir_endp != NULL)
-! {
-! ga_append(&redir_ga, NUL); /* Append the trailing NUL. */
-! tv.v_type = VAR_STRING;
-! tv.vval.v_string = redir_ga.ga_data;
-! set_var_lval(redir_lval, redir_endp, &tv, FALSE, (char_u *)".");
-! }
-
-! /* free the collected output */
-! vim_free(redir_ga.ga_data);
-! redir_ga.ga_data = NULL;
-
- clear_lval(redir_lval);
- vim_free(redir_lval);
-*** ../vim-7.2.272/src/version.c 2009-11-03 13:06:03.000000000 +0100
---- src/version.c 2009-11-03 14:24:06.000000000 +0100
-***************
-*** 678,679 ****
---- 678,681 ----
- { /* Add new patch number below this line */
-+ /**/
-+ 273,
- /**/
-
---
-Permission is granted to read this message out aloud on Kings Cross Road,
-London, under the condition that the orator is properly dressed.
-
- /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
-/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
-\\\ download, build and distribute -- http://www.A-A-P.org ///
- \\\ help me help AIDS victims -- http://ICCF-Holland.org ///