X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Flookups%2Flf_quote.c;h=6f4143d9f7d41bdc44dd58ccd18df40b6c9e818a;hb=9f4001740f061f29c65835c6f7efcab50c27db13;hp=1541d0d1602a4ea69c5fd9bb5bd8a718b9bac291;hpb=acec9514b1006e352ef283f205ecec75a9b6ff0d;p=exim.git diff --git a/src/src/lookups/lf_quote.c b/src/src/lookups/lf_quote.c index 1541d0d16..6f4143d9f 100644 --- a/src/src/lookups/lf_quote.c +++ b/src/src/lookups/lf_quote.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -45,9 +45,8 @@ character. */ if (value[0] == 0 || Ustrpbrk(value, " \t\n\r") != NULL || value[0] == '\"') { - int j; result = string_catn(result, US"\"", 1); - for (j = 0; j < vlength; j++) + for (int j = 0; j < vlength; j++) { if (value[j] == '\"' || value[j] == '\\') result = string_catn(result, US"\\", 1);