From: Jan Kratochvil Date: Wed, 10 Jun 2015 17:37:19 +0000 (+0200) Subject: Code cleanup: Use explicit NULL comparison X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8847cac2f7ce6ff2c13fa611660c2dfc59c78272;p=binutils-gdb.git Code cleanup: Use explicit NULL comparison gdb/ChangeLog 2015-06-10 Jan Kratochvil Code cleanup. * solib-target.c (library_list_start_list): Use explicit NULL comparison. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 83845f4c809..5b19052d3d8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-06-10 Jan Kratochvil + + Code cleanup. + * solib-target.c (library_list_start_list): Use explicit NULL + comparison. + 2015-06-10 Jan Kratochvil * solib-target.c (library_list_start_list): Do not dereference diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 891e5729ab1..f14363a4d98 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;