diff options
Diffstat (limited to 'intl/loadmsgcat.c')
-rw-r--r-- | intl/loadmsgcat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c index aad6dfe5db..6b09815437 100644 --- a/intl/loadmsgcat.c +++ b/intl/loadmsgcat.c @@ -214,12 +214,11 @@ _nl_load_domain (domain_file) return; } - domain_file->data - = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); - if (domain_file->data == NULL) + domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); + if (domain == NULL) return; + domain_file->data = domain; - domain = (struct loaded_domain *) domain_file->data; domain->data = (char *) data; domain->use_mmap = use_mmap; domain->mmap_size = size; |