From 77b1efa1c83ad64d49d1e9c085d2a496580ce6f9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 13:26:39 -0800 Subject: Use C99 struct initializers Signed-off-by: Alan Coopersmith --- expr.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'expr.c') diff --git a/expr.c b/expr.c index 2c9bb06..b3d8957 100644 --- a/expr.c +++ b/expr.c @@ -367,12 +367,13 @@ ExprResolveModMask(ExprDef * expr, ExprResult * val_rtrn, IdentLookupFunc lookup, XPointer lookupPriv) { - LookupPriv priv; + LookupPriv priv = { + .priv = NULL, + .chain = lookup, + .chainPriv = lookupPriv + }; - priv.priv = NULL; - priv.chain = lookup; - priv.chainPriv = lookupPriv; - return ExprResolveMask(expr, val_rtrn, LookupModMask, (XPointer) & priv); + return ExprResolveMask(expr, val_rtrn, LookupModMask, (XPointer) &priv); } int -- cgit v1.2.3