From a80faa8930ed5a554beeb2727762538873135e83 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 12 Apr 2020 19:37:17 +0200 Subject: patch 8.2.0559: clearing a struct is verbose Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER(). --- src/regexp_bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regexp_bt.c') diff --git a/src/regexp_bt.c b/src/regexp_bt.c index 0ed3711363..fef66e42fa 100644 --- a/src/regexp_bt.c +++ b/src/regexp_bt.c @@ -470,7 +470,7 @@ regcomp_start( num_complex_braces = 0; regnpar = 1; - vim_memset(had_endbrace, 0, sizeof(had_endbrace)); + CLEAR_FIELD(had_endbrace); #ifdef FEAT_SYN_HL regnzpar = 1; re_has_z = 0; -- cgit v1.2.3