commit | b3ae56cf2b02059b2a4fd2e1bee67970ec9b0dba | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Oct 27 17:39:05 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Oct 27 17:39:05 2010 +0200 |
tree | 7a9e0a8856528b239fe1df3f41e1f9d6d7fe0205 | |
parent | ee236d0d199d627193b0d61a2b3b8bbda323afd6 [diff] [blame] |
updated for version 7.3.045 Problem: Compiler warning for uninitialized variable. Solution: Initialize the variable always.
diff --git a/src/getchar.c b/src/getchar.c index fb28160..ecb0379 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -3290,9 +3290,9 @@ */ 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