libdwfl: Use actual file names in parse_opt failure cases.
authorMark Wielaard <mjw@redhat.com>
Sun, 10 Feb 2013 14:07:33 +0000 (15:07 +0100)
committerMark Wielaard <mjw@redhat.com>
Sun, 10 Feb 2013 14:07:33 +0000 (15:07 +0100)
commit40025813dc9e5f2524c3c1851a99efd43cb59894
tree5e88f67b7dcbfac97a39aec1060cb7604e5c0f1f
parent3bdc16ce98295463c071192eab2ec611a8edc508
libdwfl: Use actual file names in parse_opt failure cases.

When handling ARGP_KEY_SUCCESS the failure handling code would use 'arg'
as failure string. But 'arg' would be NULL in such cases leading to failure
messages like: "cannot open '(null)': No such file or directory".
Use opt->e and opt->core explicitly to show file names that caused failure.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/argp-std.c