summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-10-27 17:39:05 +0200
committerBram Moolenaar <Bram@vim.org>2010-10-27 17:39:05 +0200
commitb3ae56cf2b02059b2a4fd2e1bee67970ec9b0dba (patch)
tree7a9e0a8856528b239fe1df3f41e1f9d6d7fe0205 /src/getchar.c
parentee236d0d199d627193b0d61a2b3b8bbda323afd6 (diff)
updated for version 7.3.045v7.3.045
Problem: Compiler warning for uninitialized variable. Solution: Initialize the variable always.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index fb28160e54..ecb0379007 100644
--- 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