diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-06-10 19:37:19 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-06-10 19:37:19 +0200 |
commit | 8847cac2f7ce6ff2c13fa611660c2dfc59c78272 (patch) | |
tree | 3cc6fdf6c40ffd762ba60785979c4c7b893aa52c /gdb/solib-target.c | |
parent | a48d0c12f893a922692492829f04189d9f216172 (diff) | |
download | gdb-8847cac2f7ce6ff2c13fa611660c2dfc59c78272.zip gdb-8847cac2f7ce6ff2c13fa611660c2dfc59c78272.tar.gz gdb-8847cac2f7ce6ff2c13fa611660c2dfc59c78272.tar.bz2 |
Code cleanup: Use explicit NULL comparison
gdb/ChangeLog
2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* solib-target.c (library_list_start_list): Use explicit NULL
comparison.
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 891e572..f14363a 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -149,7 +149,7 @@ library_list_start_list (struct gdb_xml_parser *parser, struct gdb_xml_value *version = xml_find_attribute (attributes, "version"); /* #FIXED attribute may be omitted, Expat returns NULL in such case. */ - if (version) + if (version != NULL) { const char *string = version->value; |