mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Code cleanup.
|
||||
* solib-target.c (library_list_start_list): Use explicit NULL
|
||||
comparison.
|
||||
|
||||
2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* solib-target.c (library_list_start_list): Do not dereference
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user