Fix: lttng-crash: segfault when parsing options
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 4 Sep 2015 22:47:50 +0000 (18:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Sep 2015 00:52:49 +0000 (20:52 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-crash/lttng-crash.c

index 9016e8c45c6ab96097ce20ced0208e445b2d0be2..94943fbb9a857f5e972f5bb0e632f03032651ade 100644 (file)
@@ -274,7 +274,7 @@ static int parse_args(int argc, char **argv)
                exit(EXIT_FAILURE);
        }
 
-       while ((opt = getopt_long(argc, argv, "+Vhvex:", long_options, NULL)) != -1) {
+       while ((opt = getopt_long(argc, argv, "+Vhve:x:", long_options, NULL)) != -1) {
                switch (opt) {
                case 'V':
                        version(stdout);
This page took 0.025277 seconds and 4 git commands to generate.