Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
[kopensolaris-gnu/glibc.git] / catgets / gencat.c
index 37b73ea..9924cb9 100644 (file)
@@ -670,17 +670,17 @@ write_out (struct catalog *catalog, const char *output_name,
                }
              message_run = message_run->next;
            }
                }
              message_run = message_run->next;
            }
-
-         if (act_depth * act_size <= best_total)
-           {
-             /* We have found a better solution.  */
-             best_total = act_depth * act_size;
-             best_size = act_size;
-             best_depth = act_depth;
-           }
          set_run = set_run->next;
        }
 
          set_run = set_run->next;
        }
 
+      if (act_depth * act_size <= best_total)
+       {
+         /* We have found a better solution.  */
+         best_total = act_depth * act_size;
+         best_size = act_size;
+         best_depth = act_depth;
+       }
+
       ++act_size;
     }
 
       ++act_size;
     }