find: NULL terminate braces array in exec primary
This commit is contained in:
parent
015fb69f01
commit
5dab8bbfa9
1
find.c
1
find.c
|
@ -607,6 +607,7 @@ get_exec_arg(char *argv[], union extra *extra)
|
||||||
for (arg = argv, braces = e->u.s.braces; *arg; arg++)
|
for (arg = argv, braces = e->u.s.braces; *arg; arg++)
|
||||||
if (!strcmp(*arg, "{}"))
|
if (!strcmp(*arg, "{}"))
|
||||||
*braces++ = arg;
|
*braces++ = arg;
|
||||||
|
*braces = NULL;
|
||||||
}
|
}
|
||||||
gflags.print = 0;
|
gflags.print = 0;
|
||||||
return arg;
|
return arg;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user