* config/cplus-dem.c: Removed. It isn't used. Even if it was,
[deliverable/binutils-gdb.git] / bfd / format.c
index c7d994e5cec0f64ee91138e256e936b3dcc400c2..fb9fdc0d160c02e8851617f787a600df74023fa7 100644 (file)
@@ -177,23 +177,23 @@ bfd_check_format_matches (abfd, format, matching)
     temp = BFD_SEND_FMT (abfd, _bfd_check_format, (abfd));
     if (temp) {                                /* This format checks out as ok! */
       right_targ = temp;
-      match_count++;
       if (matching)
        {
          matching_vector[match_count] = temp->name;
-         matching_vector[match_count] = NULL;
+         matching_vector[match_count + 1] = NULL;
        }
+      match_count++;
       /* If this is the default target, accept it, even if other targets
         might match.  People who want those other targets have to set 
         the GNUTARGET variable.  */
       if (temp == bfd_default_vector[0])
        {
-         match_count = 1;
          if (matching)
            {
              matching_vector[0] = temp->name;
              matching_vector[1] = NULL;
            }
+         match_count = 1;
          break;
        }
 #ifdef GNU960
This page took 0.022871 seconds and 4 git commands to generate.