diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2011-12-20 17:15:50 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2011-12-20 17:15:50 +0000 |
commit | 81cb361d73fc3d9700d07b8b2053ae3ae226b2be (patch) | |
tree | 8cd7f26ca23169fb09555db90157a23136b7f597 | |
parent | fceb07892429f7871381cb208c297f601273ea64 (diff) | |
download | zsh-81cb361d73fc3d9700d07b8b2053ae3ae226b2be.tar.gz zsh-81cb361d73fc3d9700d07b8b2053ae3ae226b2be.tar.xz zsh-81cb361d73fc3d9700d07b8b2053ae3ae226b2be.zip |
30033: silence valgrind warnings
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Src/Zle/zle_keymap.c | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 51c129040..42e6c811c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-20 Barton E. Schaefer <schaefer@zsh.org> + + * 30033: Src/Zle/zle_keymap.c: silence valgrind warnings about + uninitialized values. + 2011-12-19 Peter Stephenson <pws@csr.com> * unposted: Config/version.mk: update version to 4.3.15-dev-0 to @@ -15776,5 +15781,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5545 $ +* $Revision: 1.5546 $ ***************************************************** diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index a08caa069..c3731c47b 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -544,6 +544,7 @@ bindkey(Keymap km, char *seq, Thingy bind, char *str) if(km->first[f]) { char fs[3]; fs[0] = f; + fs[1] = 0; metafy(fs, 1, META_NOALLOC); km->multi->addnode(km->multi, ztrdup(fs), makekeynode(km->first[f], NULL)); |