diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-02-12 16:29:54 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2014-12-09 15:49:10 +0200 |
commit | c252c77dbfae6c7ed4d9a67b2bf545c468c2e205 (patch) | |
tree | d2bc4f69cdf2b4b76ee526f3bf8d0bca57c6d2b8 /tools | |
parent | f333981e1a2f5e7a16d030469c29b53c914a831c (diff) |
tools: terminate getopt_long long option arrays properly
The last element of the long options array has to be filled with zeros.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_dump_decode.c | 3 | ||||
-rw-r--r-- | tools/intel_infoframes.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c index a8dcca06..0341aada 100644 --- a/tools/intel_dump_decode.c +++ b/tools/intel_dump_decode.c @@ -166,7 +166,8 @@ main (int argc, char *argv[]) static struct option long_options[] = { {"devid", 1, 0, 'd'}, {"ascii", 0, 0, 'a'}, - {"binary", 0, 0, 'b'} + {"binary", 0, 0, 'b'}, + { 0 } }; devid_str = getenv("INTEL_DEVID_OVERRIDE"); diff --git a/tools/intel_infoframes.c b/tools/intel_infoframes.c index e838fddf..e03cb2c0 100644 --- a/tools/intel_infoframes.c +++ b/tools/intel_infoframes.c @@ -1101,6 +1101,7 @@ int main(int argc, char *argv[]) { "transcoder" , required_argument, NULL, 't' }, { "infoframe", required_argument, NULL, 'f' }, { "help", no_argument, NULL, 'h' }, + { 0 } }; printf("WARNING: This is just a debugging tool! Don't expect it to work" |