findpaths: Fix subpath support
Due to an incorrect a specified subpath would be ignored.
This commit is contained in:
@@ -209,7 +209,7 @@ main(int argc, const char* const* argv)
|
|||||||
const char* kindConstant = argv[optind++];
|
const char* kindConstant = argv[optind++];
|
||||||
|
|
||||||
const char* subPath = NULL;
|
const char* subPath = NULL;
|
||||||
if (optind >= argc)
|
if (optind < argc)
|
||||||
subPath = argv[optind++];
|
subPath = argv[optind++];
|
||||||
|
|
||||||
// only one of path or resolvable may be specified
|
// only one of path or resolvable may be specified
|
||||||
|
|||||||
Reference in New Issue
Block a user