From bb01bad0cdc669c21338e54f9c05ce7a0ad733c1 Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Tue, 24 Feb 2015 18:44:13 -0800 Subject: [PATCH] use struct literal instead of filling each field manually --- find.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/find.c b/find.c index 1461895..6dacc2c 100644 --- a/find.c +++ b/find.c @@ -853,11 +853,8 @@ parse(int argc, char **argv) * if there was an expression but no -print, -exec, or -ok, add -a -print * in rpn, not infix */ - if (print) { - out->u.pinfo = find_primary("-print"); - out->type = PRIM; - out++; - } + if (print) + *out++ = (Tok){ .u.pinfo = find_primary("-print"), .type = PRIM }; if (print == 2) *out++ = and; -- 2.3.0