From: Jonathan Dieter Date: Sat, 18 Sep 2021 17:23:31 +0000 (+0100) Subject: Fix indentation X-Git-Tag: archive/raspbian/1.2.1+ds1-1+rpi1^2~7^2~1^2~18^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4d662b501170f63ef2456118fe9ff96681d5d6a6;p=zchunk.git Fix indentation Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/dl/multipart.c b/src/lib/dl/multipart.c index a76ceca..6786835 100644 --- a/src/lib/dl/multipart.c +++ b/src/lib/dl/multipart.c @@ -252,14 +252,14 @@ size_t multipart_get_boundary(zckDL *dl, char *b, size_t size) { regmatch_t match[2] = {{0}}; if(regexec(dl->hdr_regex, buf, 2, match, 0) == 0) { reset_mp(dl->mp); - size_t boundary_length = match[1].rm_eo - match[1].rm_so; - char *boundary_start = buf + match[1].rm_so; - if ( boundary_start[0] == '\"' && boundary_length > 2 - && boundary_start[boundary_length-1] == '\"') { - /* Remove optional quotes */ - boundary_start += 1; - boundary_length -= 2; - } + size_t boundary_length = match[1].rm_eo - match[1].rm_so; + char *boundary_start = buf + match[1].rm_so; + if (boundary_start[0] == '\"' && boundary_length > 2 + && boundary_start[boundary_length-1] == '\"') { + /* Remove optional quotes */ + boundary_start += 1; + boundary_length -= 2; + } char *boundary = zmalloc(boundary_length + 1); if (!boundary) { zck_log(ZCK_LOG_ERROR, "OOM in %s", __func__);