diff options
author | Elliott Hughes <enh@google.com> | 2021-01-08 15:37:56 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-01-08 17:36:22 -0800 |
commit | 9582c59cdea38e9121f81ed502bc45ddcca49876 (patch) | |
tree | 41cd594d66ddd43f29177374f1f7c823297a82ee /toys/posix/find.c | |
parent | 5f4651f63033df044807057792caef48b14efc50 (diff) | |
parent | 661130b38cbf74056430e4b280512369dfcd9fe9 (diff) | |
download | toybox-9582c59cdea38e9121f81ed502bc45ddcca49876.tar.gz |
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: Id8974b50d3d8640a544b81f7cc99e569371fd214
Diffstat (limited to 'toys/posix/find.c')
-rw-r--r-- | toys/posix/find.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/find.c b/toys/posix/find.c index ff127b91..2d8ca0b1 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -690,7 +690,7 @@ void find_main(void) // Distinguish paths from filters for (len = 0; toys.optargs[len]; len++) - if (strchr("-!(", *toys.optargs[len])) break; + if (*toys.optargs[len] && strchr("-!(", *toys.optargs[len])) break; TT.filter = toys.optargs+len; // use "." if no paths |