# HG changeset patch # User Aki Tuomi # Date 1500910201 -10800 # Node ID 1fc29e34ee3d73ca46a98c5e699114baad74be6d # Parent 47f3f4d58b17277a1d36b59b72bb94aa6418d1ae var-expand-if: Remove unused variable par_start diff -r 47f3f4d58b17 -r 1fc29e34ee3d src/lib/var-expand-if.c --- a/src/lib/var-expand-if.c Mon Jul 24 13:31:49 2017 +0300 +++ b/src/lib/var-expand-if.c Mon Jul 24 18:30:01 2017 +0300 @@ -173,7 +173,7 @@ 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 @@ } 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 @@ } 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