summaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 13:26:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 14:35:34 -0800
commit77b1efa1c83ad64d49d1e9c085d2a496580ce6f9 (patch)
treec121541999a472231178f6d9244266a5e953341d /expr.c
parent64761ee9424f755b84ab0ce02d13eda32d215a14 (diff)
Use C99 struct initializers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c11
1 files changed, 6 insertions, 5 deletions
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