From: Nikos Mavrogiannopoulos Date: Thu, 12 Nov 2020 15:01:30 +0000 (+0100) Subject: append_compr_types: removed unnecessary assignment X-Git-Tag: v8.20~386^2~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3cde372235c0616e4769a09dd8774b6fb2c95209;p=users%2Fdwmw2%2Fopenconnect.git append_compr_types: removed unnecessary assignment Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/cstp.c b/cstp.c index ca9f0163..fd969915 100644 --- a/cstp.c +++ b/cstp.c @@ -157,19 +157,16 @@ static void calculate_mtu(struct openconnect_info *vpninfo, int *base_mtu, int * static void append_compr_types(struct oc_text_buf *buf, const char *proto, int avail) { if (avail) { - char sep = ' '; + const char sep = ','; buf_append(buf, "X-%s-Accept-Encoding:", proto); if (avail & COMPR_LZ4) { buf_append(buf, "%coc-lz4", sep); - sep = ','; } if (avail & COMPR_LZS) { buf_append(buf, "%clzs", sep); - sep = ','; } if (avail & COMPR_DEFLATE) { buf_append(buf, "%cdeflate", sep); - sep = ','; } buf_append(buf, "\r\n"); }