use struct literal instead of filling each field manually

This commit is contained in:
Evan Gates 2015-02-24 18:44:13 -08:00 committed by sin
parent 4671b4c974
commit e427364a28

7
find.c
View File

@ -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;