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/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ops.c') diff --git a/src/ops.c b/src/ops.c index 5f7cc60b6d..5e9de4d7cc 100644 --- a/src/ops.c +++ b/src/ops.c @@ -3412,7 +3412,7 @@ theend: void clear_oparg(oparg_T *oap) { - vim_memset(oap, 0, sizeof(oparg_T)); + CLEAR_POINTER(oap); } /* -- cgit v1.2.3