commit | f5ef40de83dc47577d0cdbca34a168dc66fb4da7 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Wed Apr 03 16:32:24 2019 -0700 |
committer | Eric Biggers <ebiggers@google.com> | Wed Apr 03 16:32:24 2019 -0700 |
tree | df8075197559cadf8d30a6e22562ae205009c0f6 | |
parent | c8f5cbb5b1aa7f1a1ad8d43e13f5deb539380b47 [diff] |
Add missing null terminator for getopt_long() getopt_long() assumes an all-zeroes 'struct option' at the end of the array. Add it. Fortunately this isn't causing problems in practice because vold is always passed valid command line options... Test: Running 'vold --foo' no longer segfaults. Change-Id: I2cd3af501cc1aa11327a8062ec492be1d23defdf