summaryrefslogtreecommitdiffstats
path: root/registry/tools/checksingleton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/tools/checksingleton.cxx')
-rw-r--r--registry/tools/checksingleton.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/tools/checksingleton.cxx b/registry/tools/checksingleton.cxx
index 680201c590d5..e4fc39449e37 100644
--- a/registry/tools/checksingleton.cxx
+++ b/registry/tools/checksingleton.cxx
@@ -146,7 +146,7 @@ bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
case 'f':
case 'F':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", option.c_str());
}
@@ -156,7 +156,7 @@ bool Options_Impl::initOptions_Impl(std::vector< std::string > & rArgs)
case 'h':
case '?':
{
- if ((*first)[2] != 0)
+ if ((*first).size() > 2)
{
return badOption("invalid", option.c_str());
}