diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-11-28 20:29:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-11-28 20:29:07 +0000 |
commit | fe86f2d7cdb284f18543cac2e6cbbe11352c7f48 (patch) | |
tree | 9b8155ee2c3fe3142e4258590d210451db55db1f /src/option.c | |
parent | a40b46614a54de01a74d37a771db4dbfa44afee9 (diff) | |
download | vim-fe86f2d7cdb284f18543cac2e6cbbe11352c7f48.zip |
updated for version 7.2-055
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 e8b8b0c7c..15986f4f9 100644 --- a/src/option.c +++ b/src/option.c @@ -8232,13 +8232,13 @@ set_option_value(name, number, string, opt_flags) { if (number == 0 && string != NULL) { - int index; + int idx; /* Either we are given a string or we are setting option * to zero. */ - for (index = 0; string[index] == '0'; ++index) + for (idx = 0; string[idx] == '0'; ++idx) ; - if (string[index] != NUL || index == 0) + if (string[idx] != NUL || idx == 0) { /* There's another character after zeros or the string * is empty. In both cases, we are trying to set a |