OSDN Git Service

Fix problem where unknown option is not an error.
authorChristopher Ferris <cferris@google.com>
Mon, 14 Mar 2016 22:29:46 +0000 (15:29 -0700)
committerChristopher Ferris <cferris@google.com>
Tue, 15 Mar 2016 18:18:15 +0000 (11:18 -0700)
commit4451b53c3761b46fa33a3e47bfb0c62ca47e5fbb
tree12e65bfe282a0829cbdc13bdac61f47ac9eaf649
parent19930d5f6ef39e660d0cdab5e17445a7d3ed1310
Fix problem where unknown option is not an error.

If the first option is found, then any unknown options are simply
ignored, but do not produce an error. Fixed this so that each
option found is actually verified to exist.

Bug: 27620263

(cherry picked from commit a4b14252752d14454afb48feb3272e8689e3a66d)

Change-Id: I709774456283879e2a8aa5ce375899eaa79f6bc3
libc/malloc_debug/Config.cpp
libc/malloc_debug/tests/malloc_debug_config_tests.cpp