Updated from /gd4/gnu/gettext-0.9.12/intl/dcgettext.c
authorroland <roland>
Fri, 10 Nov 1995 19:12:25 +0000 (19:12 +0000)
committerroland <roland>
Fri, 10 Nov 1995 19:12:25 +0000 (19:12 +0000)
intl/dcgettext.c

index 91025be..09e0443 100644 (file)
@@ -317,14 +317,13 @@ DCGETTEXT (domainname, msgid, category)
            {
              int cnt;
 
-             for (cnt = 6; cnt >= 0 && retval == NULL; --cnt)
-               if (domain->successor[cnt] != NULL)
-                 {
-                   retval = find_msg (domain->successor[cnt], msgid);
-
-                   if (domain->successor[cnt]->data == NULL)
-                     domain->successor[cnt] = NULL;
-                 }
+             for (cnt = 0; domain->successor[cnt] != NULL; --cnt)
+               {
+                 retval = find_msg (domain->successor[cnt], msgid);
+
+                 if (retval != NULL)
+                   break;
+               }
            }
 
          if (retval != NULL)