diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-01-17 17:37:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-01-17 17:37:35 +0100 |
commit | 09365025386ac6af4710517a89fe0c4ed2bc86e4 (patch) | |
tree | ed402b1d4ca3b9e91fd33ae2d881993535037947 /src/option.c | |
parent | 08ed30eca7d64e623a5363a6a0eac79af48ec1c0 (diff) | |
download | vim-git-09365025386ac6af4710517a89fe0c4ed2bc86e4.tar.gz |
updated for version 7.3.771v7.3.771
Problem: Uninitialized variable. (Yasuhiro Matsumoto)
Solution: Set x2 to -1.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/option.c b/src/option.c index 8f5240602..f38e9c706 100644 --- a/src/option.c +++ b/src/option.c @@ -6154,7 +6154,8 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, { for (p = *varp; *p != NUL; ++p) { - int x2,x3 = -1; + int x2 = -1; + int x3 = -1; if (*p != NUL) p += mb_ptr2len(p); @@ -6165,8 +6166,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, x3 = mb_ptr2char(p); p += mb_ptr2len(p); } - if (x2 != ':' || x2 == -1 || x3 == -1 - || (*p != NUL && *p != ',')) + if (x2 != ':' || x3 == -1 || (*p != NUL && *p != ',')) { errmsg = e_invarg; break; |