aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-07-13 11:48:00 +0100
committerLewis Russell <lewis6991@gmail.com>2023-08-31 15:08:02 +0100
commit9a6b399cadef1cf5cd65851f76c9cf600b7e0aa1 (patch)
treee3bef9211c9a286ceb079dcb056cc66e3ab61c35
parent95c880ce310a6ab3e5b68d4b1d81d81da6786f00 (diff)
downloadrneovim-9a6b399cadef1cf5cd65851f76c9cf600b7e0aa1.tar.gz
rneovim-9a6b399cadef1cf5cd65851f76c9cf600b7e0aa1.tar.bz2
rneovim-9a6b399cadef1cf5cd65851f76c9cf600b7e0aa1.zip
refactor(option): remove redundant local
-rw-r--r--src/nvim/option.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index f108b4d8d9..164abe2c80 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -1100,7 +1100,6 @@ static void do_set_option_string(int opt_idx, int opt_flags, char **argp, int ne
set_op_T op_arg, uint32_t flags, void *varp_arg, char *errbuf,
size_t errbuflen, bool *value_checked, const char **errmsg)
{
- char *arg = *argp;
set_op_T op = op_arg;
void *varp = varp_arg;
char *origval_l = NULL;
@@ -1138,7 +1137,7 @@ static void do_set_option_string(int opt_idx, int opt_flags, char **argp, int ne
}
// Get the new value for the option
- char *newval = stropt_get_newval(nextchar, opt_idx, &arg, varp, origval, &op, flags);
+ char *newval = stropt_get_newval(nextchar, opt_idx, argp, varp, origval, &op, flags);
// Set the new value.
*(char **)(varp) = newval;
@@ -1193,8 +1192,6 @@ static void do_set_option_string(int opt_idx, int opt_flags, char **argp, int ne
xfree(saved_origval_l);
xfree(saved_origval_g);
xfree(saved_newval);
-
- *argp = arg;
}
static set_op_T get_op(const char *arg)