mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
findpaths: Fix subpath support
Due to an incorrect a specified subpath would be ignored.
This commit is contained in:
parent
23e82de9fa
commit
7162730128
@ -209,7 +209,7 @@ main(int argc, const char* const* argv)
|
||||
const char* kindConstant = argv[optind++];
|
||||
|
||||
const char* subPath = NULL;
|
||||
if (optind >= argc)
|
||||
if (optind < argc)
|
||||
subPath = argv[optind++];
|
||||
|
||||
// only one of path or resolvable may be specified
|
||||
|
Loading…
x
Reference in New Issue
Block a user