From: Philippe Proulx Date: Fri, 4 Sep 2015 22:47:50 +0000 (-0400) Subject: Fix: lttng-crash: segfault when parsing options X-Git-Tag: v2.8.0-rc1~355 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d07f3d990e51e93befc55d0cfbd228227b1875b1 Fix: lttng-crash: segfault when parsing options Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-crash/lttng-crash.c b/src/bin/lttng-crash/lttng-crash.c index 5ca85f3bd..5d8e620f7 100644 --- a/src/bin/lttng-crash/lttng-crash.c +++ b/src/bin/lttng-crash/lttng-crash.c @@ -275,7 +275,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);