summaryrefslogtreecommitdiff
path: root/src/arbits/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-17 21:00:11 +0000
committermidipix <writeonce@midipix.org>2024-02-17 21:00:11 +0000
commit5ade200ee5f4c86795c0edb00242d71a3b8764f5 (patch)
tree5e0f48b71e3dc0b183b31d4dae9218e747e1962a /src/arbits/output
parent874b595d141abd86bf5253ca835471c828b4e8be (diff)
downloadslibtool-5ade200ee5f4c86795c0edb00242d71a3b8764f5.tar.bz2
slibtool-5ade200ee5f4c86795c0edb00242d71a3b8764f5.tar.xz
code base: legacy toolchain accommodation: initialize _all_ struct members.
Diffstat (limited to 'src/arbits/output')
-rw-r--r--src/arbits/output/slbt_ar_output_mapfile.c2
-rw-r--r--src/arbits/output/slbt_ar_output_symbols.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arbits/output/slbt_ar_output_mapfile.c b/src/arbits/output/slbt_ar_output_mapfile.c
index ab85394..f2c2a9b 100644
--- a/src/arbits/output/slbt_ar_output_mapfile.c
+++ b/src/arbits/output/slbt_ar_output_mapfile.c
@@ -25,7 +25,7 @@ static int slbt_ar_output_mapfile_impl(
const char ** symv;
const char ** symstrv;
regex_t regctx;
- regmatch_t pmatch[2] = {0};
+ regmatch_t pmatch[2] = {{0,0},{0,0}};
fsort = !(dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_NOSORT);
diff --git a/src/arbits/output/slbt_ar_output_symbols.c b/src/arbits/output/slbt_ar_output_symbols.c
index 72dd3e0..148e0b1 100644
--- a/src/arbits/output/slbt_ar_output_symbols.c
+++ b/src/arbits/output/slbt_ar_output_symbols.c
@@ -30,7 +30,7 @@ static int slbt_ar_output_symbols_posix(
const char ** symv;
const char ** symstrv;
regex_t regctx;
- regmatch_t pmatch[2] = {0};
+ regmatch_t pmatch[2] = {{0,0},{0,0}};
fdout = fdctx->fdout;
fsort = !(dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_NOSORT);