From: Fabian Keil Date: Tue, 25 Aug 2009 16:44:25 +0000 (+0200) Subject: Remove write-only variable sep_ar_idx in split_multi_arg(). X-Git-Tag: gnutls_2_9_4~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4e715e4db224147b942aba170730d3188a822d3;p=thirdparty%2Fgnutls.git Remove write-only variable sep_ar_idx in split_multi_arg(). Signed-off-by: Simon Josefsson --- 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; } }