From: Aki Tuomi Date: Mon, 24 Jul 2017 15:30:01 +0000 (+0300) Subject: var-expand-if: Remove unused variable par_start X-Git-Tag: 2.2.33.rc1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=587bf2f8f004240ef3fbed6bf813449111d447d2;p=thirdparty%2Fdovecot%2Fcore.git var-expand-if: Remove unused variable par_start --- diff --git a/src/lib/var-expand-if.c b/src/lib/var-expand-if.c index df54138a27..2181421b03 100644 --- a/src/lib/var-expand-if.c +++ b/src/lib/var-expand-if.c @@ -173,7 +173,7 @@ int var_expand_if(struct var_expand_context *ctx, by concatenating the key and field together. */ const char *input = t_strconcat(key, ":", field, NULL); const char *p = strchr(input, ';'); - const char *par_start, *par_end; + const char *par_end; string_t *parbuf; const char *const *parms; unsigned int depth = 0; @@ -185,12 +185,11 @@ int var_expand_if(struct var_expand_context *ctx, } ARRAY_TYPE(const_string) params; t_array_init(¶ms, 6); - par_start = p+1; parbuf = t_str_new(64); /* we need to skip any %{} parameters here, so we can split the string correctly from , without breaking any inner expansions */ - for(par_end = par_start; *par_end != '\0'; par_end++) { + for(par_end = p+1; *par_end != '\0'; par_end++) { if (*par_end == '\\') { escape = TRUE; continue; @@ -209,7 +208,6 @@ int var_expand_if(struct var_expand_context *ctx, } else if (depth == 0 && *par_end == ';') { const char *par = str_c(parbuf); array_append(¶ms, &par, 1); - par_start = par_end + 1; parbuf = t_str_new(64); continue; /* if there is a unescaped : at top level it means