Fix indentation
authorJonathan Dieter <jdieter@gmail.com>
Sat, 18 Sep 2021 17:23:31 +0000 (18:23 +0100)
committerJonathan Dieter <jdieter@gmail.com>
Sat, 18 Sep 2021 17:23:31 +0000 (18:23 +0100)
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/dl/multipart.c

index a76cecae7bffd1f99e253c65d2a95757730925ab..678683589bf7b0f9bb6ddc36f6b2d5e388e18fb2 100644 (file)
@@ -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__);