This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix PR gdb/21364: Dead code due to an unreachable condition in osdata.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 10 Apr 2017 13:08:18 -0400
- Subject: [binutils-gdb] Fix PR gdb/21364: Dead code due to an unreachable condition in osdata.c
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT a5bef50fdbfadbc6b8911b458580ee91cbfcdafd ***
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Branch: master
Commit: a5bef50fdbfadbc6b8911b458580ee91cbfcdafd
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.