findpaths: Fix subpath support

Due to an incorrect a specified subpath would be ignored.
This commit is contained in:
Ingo Weinhold 2013-12-04 23:07:53 +01:00
parent 23e82de9fa
commit 7162730128

View File

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