]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
append_compr_types: removed unnecessary assignment
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 12 Nov 2020 15:01:30 +0000 (16:01 +0100)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Tue, 17 Nov 2020 12:53:13 +0000 (13:53 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index ca9f0163a1b56fc85cf08368bc9fe40c8014ef89..fd969915b7278a3467182ec22dede3676a424447 100644 (file)
--- 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");
        }