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
|
* if there was an expression but no -print, -exec, or -ok, add -a -print
|
||||||
* in rpn, not infix
|
* in rpn, not infix
|
||||||
*/
|
*/
|
||||||
if (print) {
|
if (print)
|
||||||
out->u.pinfo = find_primary("-print");
|
*out++ = (Tok){ .u.pinfo = find_primary("-print"), .type = PRIM };
|
||||||
out->type = PRIM;
|
|
||||||
out++;
|
|
||||||
}
|
|
||||||
if (print == 2)
|
if (print == 2)
|
||||||
*out++ = and;
|
*out++ = and;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user