diff options
author | Mikhail Naganov <mnaganov@google.com> | 2021-06-11 08:52:39 -0700 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2021-06-11 08:52:39 -0700 |
commit | b9e244dfc7a381907aa6cf55966647ec2e0c038f (patch) | |
tree | 88f0e37d98a63b6b8f821a9a56dacafe244d2ada /identity/support/src/cppbor_parse.cpp | |
parent | 05e6b870a40e3f067686ba3acb4c75278cad9079 (diff) |
audio: Fix parsing of arguments in the APM config update script
The regex for finding "-h[elp]" argument wasn't correct.
As a result, a file name containing "-h" would match.
Fix the regex by requiring that "-h" must appear at the
beginning of the line.
Test: h/i/audio/7.0/config/update_audio_policy_config.sh -h
Test: h/i/audio/7.0/config/update_audio_policy_config.sh -help
Test: h/i/audio/7.0/config/update_audio_policy_config.sh test-help.xml
Change-Id: Ibdf191e95baacc8600daa8b2f19ddc8338f182eb
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions