Test usage_count against UNDELETABLE, not MAX_USAGE_COUNT.
authordrepper <drepper>
Mon, 22 Dec 1997 17:30:22 +0000 (17:30 +0000)
committerdrepper <drepper>
Mon, 22 Dec 1997 17:30:22 +0000 (17:30 +0000)
locale/freelocale.c

index a09a744..3cfa527 100644 (file)
@@ -38,7 +38,7 @@ __freelocale (__locale_t dataset)
   __libc_lock_lock (__libc_setlocale_lock);
 
   for (cnt = 0; cnt < LC_ALL; ++cnt)
-    if (dataset->__locales[cnt]->usage_count != MAX_USAGE_COUNT)
+    if (dataset->__locales[cnt]->usage_count != UNDELETABLE)
       /* We can remove the data.  */
       _nl_remove_locale (cnt, dataset->__locales[cnt]);