Increase usage_count only if less than MAX_USAGE_COUNT.
authordrepper <drepper>
Mon, 22 Dec 1997 17:30:03 +0000 (17:30 +0000)
committerdrepper <drepper>
Mon, 22 Dec 1997 17:30:03 +0000 (17:30 +0000)
locale/duplocale.c

index b3aa4af..2dcc0f5 100644 (file)
@@ -45,7 +45,7 @@ __duplocale (__locale_t dataset)
       for (cnt = 0; cnt < LC_ALL; ++cnt)
        {
          result->__locales[cnt] = dataset->__locales[cnt];
-         if (result->__locales[cnt]->usage_count != MAX_USAGE_COUNT)
+         if (result->__locales[cnt]->usage_count < MAX_USAGE_COUNT)
            ++result->__locales[cnt]->usage_count;
        }
     }