summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-03-01 15:32:00 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-03-01 15:32:00 +0100
commitbb80642b7034a9cb43b95a7fa12a1f51eb947724 (patch)
tree8d9d40e364f11c8b49680d913120a12b83f808a0
parent58365527e46d71f17df8463937a2404d6fa66582 (diff)
downloadmblaze-bb80642b7034a9cb43b95a7fa12a1f51eb947724.tar.gz
mblaze-bb80642b7034a9cb43b95a7fa12a1f51eb947724.tar.xz
mblaze-bb80642b7034a9cb43b95a7fa12a1f51eb947724.zip
msed: improve zero initialization
-rw-r--r--msed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msed.c b/msed.c
index 3bcad9a..4fef8f4 100644
--- a/msed.c
+++ b/msed.c
@@ -28,7 +28,7 @@ subst(char *str, char *srch, char *repl, char *flags)
 #define APPC(c) do { if (b >= bufe) return str; *b++ = c; } while (0)
 
 	regex_t srchrx;
-	regmatch_t pmatch[10] = {0};
+	regmatch_t pmatch[10] = {{0}};
 	if (regcomp(&srchrx, srch, iflag ? REG_ICASE : 0) != 0)
 		return str;