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.7.0-rc2~34 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=789404515de7a52e4da7e65c414610d5bd0bd490;p=lttng-tools.git 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 9016e8c45..94943fbb9 100644 --- a/src/bin/lttng-crash/lttng-crash.c +++ b/src/bin/lttng-crash/lttng-crash.c @@ -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);