about summary refs log tree commit diff
path: root/catgets
diff options
context:
space:
mode:
Diffstat (limited to 'catgets')
-rw-r--r--catgets/gencat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/catgets/gencat.c b/catgets/gencat.c
index 37b73eaf59..9924cb9161 100644
--- a/catgets/gencat.c
+++ b/catgets/gencat.c
@@ -670,17 +670,17 @@ write_out (struct catalog *catalog, const char *output_name,
 		}
 	      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;
 	}
 
+      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;
     }