diff options
author | Fabian Keil <fk@fabiankeil.de> | 2009-08-25 18:44:25 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-08-31 12:49:56 +0200 |
commit | a4e715e4db224147b942aba170730d3188a822d3 (patch) | |
tree | 2be1cccc0aa029848bb6cf0f92c5ce7964394fed /src/cfg | |
parent | 63c767de777fdc23e48718abb8457fa08644ce0f (diff) | |
download | gnutls-a4e715e4db224147b942aba170730d3188a822d3.tar.gz |
Remove write-only variable sep_ar_idx in split_multi_arg().
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Diffstat (limited to 'src/cfg')
-rw-r--r-- | src/cfg/shared.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cfg/shared.c b/src/cfg/shared.c index 1219f47059..ef919c01c2 100644 --- a/src/cfg/shared.c +++ b/src/cfg/shared.c @@ -837,7 +837,7 @@ split_multi_arg(arg, ar, quote_prefix_ar, quote_postfix_ar, separator_ar) char **separator_ar; { /* {{{ */ register int i; - int sep_ar_idx, quote_idx, sep_size, tmp_sep_size; + int quote_idx, sep_size, tmp_sep_size; char *p_quote, *p_sep, *tmp_s; char *arg_base = arg; @@ -850,7 +850,6 @@ split_multi_arg(arg, ar, quote_prefix_ar, quote_postfix_ar, separator_ar) and set quotation variables */ p_quote = PLATON_FUNC(strdyn_str2)(arg, quote_prefix_ar, "e_idx); p_sep = NULL; /* pointer to separator */ - sep_ar_idx = -1; /* index of separator */ sep_size = 0; /* length of separator string */ /* Searching first separator string (p_sep) */ @@ -858,7 +857,6 @@ split_multi_arg(arg, ar, quote_prefix_ar, quote_postfix_ar, separator_ar) if ((tmp_s = PLATON_FUNC(str_white_str)(arg, separator_ar[i], &tmp_sep_size)) != NULL && (p_sep == NULL || tmp_s < p_sep)) { p_sep = tmp_s; - sep_ar_idx = i; sep_size = tmp_sep_size; } } |