Get rid of warnings on EL7 gcc
authorJonathan Dieter <jdieter@gmail.com>
Tue, 17 Apr 2018 13:25:39 +0000 (16:25 +0300)
committerJonathan Dieter <jdieter@gmail.com>
Tue, 17 Apr 2018 13:25:39 +0000 (16:25 +0300)
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/dl/multipart.c

index 09fd4de3bf9293806b3fc9e96303d57895071a21..0d7b6161a0c4625f31cc228a20b633980dfa3370 100644 (file)
@@ -169,7 +169,7 @@ size_t zck_multipart_extract(zckDL *dl, char *b, size_t l) {
             continue;
 
         /* Run regex against download range string */
-        regmatch_t match[4] = {0};
+        regmatch_t match[4] = {{0}};
         if(regexec(dl->priv->dl_regex, i, 3, match, 0) != 0) {
             if(regexec(dl->priv->end_regex, i, 3, match, 0) != 0)
                 zck_log(ZCK_LOG_ERROR, "Unable to find multipart download range\n");
@@ -228,7 +228,7 @@ size_t zck_multipart_get_boundary(zckDL *dl, char *b, size_t size) {
     memcpy(buf, b, size);
 
     /* Check whether this header contains the boundary and set it if it does */
-    regmatch_t match[2] = {0};
+    regmatch_t match[2] = {{0}};
     if(regexec(dl->priv->hdr_regex, buf, 2, match, 0) == 0) {
         reset_mp(dl->priv->mp);
         char *boundary = zmalloc(match[1].rm_eo - match[1].rm_so + 1);