Mercurial > vim
diff src/getchar.c @ 2623:bc3f88ca060d v7.3.045
updated for version 7.3.045
Problem: Compiler warning for uninitialized variable.
Solution: Initialize the variable always.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 27 Oct 2010 17:39:05 +0200 |
parents | c6fe65c000d2 |
children | 6a2e4860134b |
line wrap: on
line diff
--- a/src/getchar.c +++ b/src/getchar.c @@ -3290,9 +3290,9 @@ do_map(maptype, arg, mode, abbrev) */ if (haskey) keys = replace_termcodes(keys, &keys_buf, TRUE, TRUE, special); + orig_rhs = rhs; if (hasarg) { - orig_rhs = rhs; if (STRICMP(rhs, "<nop>") == 0) /* "<Nop>" means nothing */ rhs = (char_u *)""; else