Hi

Running vim tests with valgrind, I saw this error:

==14510== Memcheck, a memory error detector
==14510== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==14510== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==14510== Command: ../vim -f -u unix.vim -U NONE --noplugin
--not-a-term -s dotest.in test_listlbr_utf8.in
==14510== Parent PID: 14509
==14510==
==14510== Conditional jump or move depends on uninitialised value(s)
==14510==    at 0x4C83F5: ex_doautoall (fileio.c:8774)
==14510==    by 0x48FC46: do_one_cmd (ex_docmd.c:2923)
==14510==    by 0x48B45D: do_cmdline (ex_docmd.c:1108)
==14510==    by 0x488AD9: do_source (ex_cmds2.c:3937)
==14510==    by 0x4880BA: cmd_source (ex_cmds2.c:3550)
==14510==    by 0x48811B: ex_source (ex_cmds2.c:3525)
==14510==    by 0x48FC46: do_one_cmd (ex_docmd.c:2923)
==14510==    by 0x48B45D: do_cmdline (ex_docmd.c:1108)
==14510==    by 0x48C305: do_cmdline_cmd (ex_docmd.c:713)
==14510==    by 0x6190C2: syn_cmd_onoff (syntax.c:3864)
==14510==    by 0x615C34: syn_cmd_on (syntax.c:3806)
==14510==    by 0x60D894: ex_syntax (syntax.c:6314)
==14510==    by 0x48FC46: do_one_cmd (ex_docmd.c:2923)
==14510==    by 0x48B45D: do_cmdline (ex_docmd.c:1108)
==14510==    by 0x541ADC: nv_colon (normal.c:5320)
==14510==    by 0x537ABC: normal_cmd (normal.c:1149)
==14510==    by 0x663255: main_loop (main.c:1359)
==14510==    by 0x65F7E6: main (main.c:1051)
==14510==  Uninitialised value was created by a stack allocation
==14510==    at 0x4C8370: ex_doautoall (fileio.c:8749)
(snip more errors after that)

The bug was introduced by recent patch 7.4.1913.
Attached patch fixes it.

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/fileio.c b/src/fileio.c
index 37b43a3..09adf70 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -8696,7 +8696,7 @@ do_doautocmd(
     int		group;
 
     if (did_something != NULL)
-	did_something = FALSE;
+	*did_something = FALSE;
 
     /*
      * Check for a legal group name.  If not, use AUGROUP_ALL.

Raspunde prin e-mail lui