Commit 2ab6839b by Ulrich Drepper Committed by Ulrich Drepper

dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears after '='.

	* dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
	after '='.

From-SVN: r268380
parent 6aa238a1
2019-01-30 Ulrich Drepper <drepper@redhat.com>
* dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
after '='.
2019-01-29 Martin Sebor <msebor@redhat.com>
PR c/88956
......
......@@ -1915,10 +1915,9 @@ opt_info_switch_p_1 (const char *arg, dump_flags_t *flags,
end_ptr = strchr (ptr, '-');
eq_ptr = strchr (ptr, '=');
if (eq_ptr && !end_ptr)
if (eq_ptr && (!end_ptr || eq_ptr < end_ptr))
end_ptr = eq_ptr;
if (!end_ptr)
else if (!end_ptr)
end_ptr = ptr + strlen (ptr);
length = end_ptr - ptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment