NULL terminate braces array in get_ok_arg
This commit is contained in:
parent
c5f8294f63
commit
1490b37bd2
1
find.c
1
find.c
@ -635,6 +635,7 @@ get_ok_arg(char *argv[], union extra *extra)
|
|||||||
for (arg = argv, braces = o->braces; *arg; arg++)
|
for (arg = argv, braces = o->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