NULL terminate braces array in get_ok_arg

This commit is contained in:
Evan Gates 2015-06-15 13:49:38 -07:00 committed by sin
parent c5f8294f63
commit 1490b37bd2

1
find.c
View File

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