diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2017-04-10 12:43:44 -0400 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2017-04-10 12:43:44 -0400 |
commit | a5bef50fdbfadbc6b8911b458580ee91cbfcdafd (patch) | |
tree | dbbc377bcd24c94aff0a235622f967a912ea00fe /include | |
parent | 28d909e539567ab5ecd2bc20680e933869fdf889 (diff) | |
download | fsf-binutils-gdb-a5bef50fdbfadbc6b8911b458580ee91cbfcdafd.zip fsf-binutils-gdb-a5bef50fdbfadbc6b8911b458580ee91cbfcdafd.tar.gz fsf-binutils-gdb-a5bef50fdbfadbc6b8911b458580ee91cbfcdafd.tar.bz2 |
Fix PR gdb/21364: Dead code due to an unreachable condition in osdata.c
Pedro's recent commits enabling -Wwrite-strings has changed a bit the
logic of info_osdata. Now, 'type' is always non-NULL, so we have to
check if it's an empty string instead of NULL. One of the checks was
fixed, but there is another that was left behind. This commit fixes
it.
gdb/ChangeLog:
2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
PR gdb/21364
* osdata.c (info_osdata): Check if 'type' is an empty string
instead of NULL.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions