From 716273012886ab13e7443dba0d2cedbc5ac223ee Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 4 Dec 2013 23:07:53 +0100 Subject: [PATCH] findpaths: Fix subpath support Due to an incorrect a specified subpath would be ignored. --- src/bin/findpaths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/findpaths.cpp b/src/bin/findpaths.cpp index b6a5bb59d3..716ac1ac6c 100644 --- a/src/bin/findpaths.cpp +++ b/src/bin/findpaths.cpp @@ -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