]> git.itanic.dy.fi Git - glucose/blobdiff - options.c
Fixed option handling.
[glucose] / options.c
index 7bd5b9bbfd9700a081a8753d46dc379c01903bf2..8392f99c346f073ffabcf91500f5f8e065e6ba3c 100644 (file)
--- a/options.c
+++ b/options.c
@@ -30,13 +30,11 @@ int read_args(int argc, char *argv[], struct user_options *opts)
         static struct option long_options[] = {
                 { .val = 'd', .name = "device", .has_arg = 1, },
                 { .val = 'v', .name = "verbose", .has_arg = 2 },
-               { .val = 'o', .name = "output", .has_arg = 1 },
+                { .val = 'o', .name = "output", .has_arg = 1 },
                 { .val = 'f', .name = "format", .has_arg = 1, },
         };
         char short_options[] = "d:v:o:f:";
 
-       memset(opts, 0, sizeof(*opts));
-
         while (1) {
                 c = getopt_long(argc, argv, short_options, long_options,
                                 &option_index);