8b9847
2012-06-14  Jeff Law  <law@redhat.com>
8b9847
8b9847
8b9847
	* locale/loadlocale.c (_nl_load_locale): Delay setting
8b9847
	file->decided until we have successfully loaded the file's
8b9847
	data.
8b9847
8b9847
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
8b9847
index e3fa187..9fd9216 100644
8b9847
--- a/locale/loadlocale.c
8b9847
+++ b/locale/loadlocale.c
8b9847
@@ -169,7 +169,6 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
8b9847
   int save_err;
8b9847
   int alloc = ld_mapped;
8b9847
 
8b9847
-  file->decided = 1;
8b9847
   file->data = NULL;
8b9847
 
8b9847
   fd = open_not_cancel_2 (file->filename, O_RDONLY | O_CLOEXEC);
8b9847
@@ -278,6 +277,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
8b9847
   newdata->alloc = alloc;
8b9847
 
8b9847
   file->data = newdata;
8b9847
+  file->decided = 1;
8b9847
 }
8b9847
 
8b9847
 void