As the number of elements may increase over time, it is better to zero
out the entire strucutre and then explicity set default values only on
those entries that have non-zero default.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
int main(int argc, char *argv[])
{
- struct user_options opts = { .usbdev = NULL, .output_path = NULL, .output_format = CLEAN, .trace_level = 0 };
+ struct user_options opts;
int fd, usage_code, ret, error;
+ bzero(&opts, sizeof(opts));
+ opts.output_format = CLEAN;
+
if ( read_args(argc, argv, &opts) )
return -1;