| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.597 |
| 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.4.597 |
| Problem: Cannot change the result of systemlist(). |
| Solution: Initialize v_lock. (Yukihiro Nakadaira) |
| Files: src/eval.c |
| |
| |
| |
| |
| |
| *** 6007,6012 **** |
| --- 6007,6013 ---- |
| |
| /* |
| * Allocate a list item. |
| + * It is not initialized, don't forget to set v_lock. |
| */ |
| listitem_T * |
| listitem_alloc() |
| |
| *** 18713,18718 **** |
| --- 18714,18720 ---- |
| goto errret; |
| } |
| li->li_tv.v_type = VAR_STRING; |
| + li->li_tv.v_lock = 0; |
| li->li_tv.vval.v_string = s; |
| list_append(list, li); |
| } |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 597, |
| /**/ |
| |
| -- |
| "Microsoft is like Coke. It's a secret formula, all the money is from |
| distribution, and their goal is to get Coke everywhere. Open source is like |
| selling water. There are water companies like Perrier and Poland Spring, but |
| you're competing with something that's free." -- Carl Howe |
| |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |