Initialize lock field and don't pass second parameter to
authordrepper <drepper>
Fri, 29 Aug 1997 00:43:13 +0000 (00:43 +0000)
committerdrepper <drepper>
Fri, 29 Aug 1997 00:43:13 +0000 (00:43 +0000)
__open_catalog.

catgets/gencat.c

index 9ce962c..8d310d8 100644 (file)
@@ -988,9 +988,11 @@ read_old (struct catalog *catalog, const char *file_name)
 
   old_cat_obj.status = closed;
   old_cat_obj.cat_name = file_name;
+  old_cat_obj.nlspath = NULL;
+  __libc_lock_init (old_cat_obj.lock);
 
   /* Try to open catalog, but don't look through the NLSPATH.  */
-  __open_catalog (&old_cat_obj, 0);
+  __open_catalog (&old_cat_obj);
 
   if (old_cat_obj.status != mmapped && old_cat_obj.status != malloced)
     if (errno == ENOENT)