aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 991ff15..952897c 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1695,7 +1695,7 @@ gdb_bfd_lookup_symbol (bfd *abfd,
static void
remove_user_added_objfile (struct objfile *objfile)
{
- if (objfile != 0 && objfile->flags & OBJF_USERLOADED)
+ if (objfile->flags & OBJF_USERLOADED)
{
for (solib &so : objfile->pspace->solibs ())
if (so.objfile == objfile)