summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
author Victor Hsieh <victorhsieh@google.com> 2021-05-24 14:18:29 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2021-06-02 19:26:31 +0000
commit9faf7c77ac6974e34a644d75ceddd1d5f4268bfb (patch)
tree63141b29af1682978873f8e8e3df77e67576d368 /cmdline
parenta6b3b297bdd70ad3e915a48b02a7c7cf5f204e05 (diff)
Fix separator check in command line parsing
Bug: 187327262 Test: TH Change-Id: I6afe06aba5445b7af31ce3f9ea3ecb0c4788eba9
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/cmdline_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/cmdline_types.h b/cmdline/cmdline_types.h
index c506e03e27..43d30222c7 100644
--- a/cmdline/cmdline_types.h
+++ b/cmdline/cmdline_types.h
@@ -483,7 +483,7 @@ struct CmdlineType<ParseIntList<Separator>> : CmdlineTypeParser<ParseIntList<Sep
list.push_back(static_cast<int>(value));
if (*end == '\0') {
break;
- } else if (*end != ',') {
+ } else if (*end != Separator) {
return Result::Failure(std::string("Unexpected character: ") + *end);
}
pos = end + 1;