use struct literal instead of filling each field manually
This commit is contained in:
parent
4671b4c974
commit
e427364a28
7
find.c
7
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user