Bash-4.4 distribution sources and documentation

This commit is contained in:
Chet Ramey 2016-09-15 16:59:08 -04:00
commit a0c0a00fc4
588 changed files with 130746 additions and 80164 deletions

View file

@ -332,7 +332,10 @@ _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
+ (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0))
* sizeof (struct loaded_l10nfile *)));
if (retval == NULL)
return NULL;
{
free (abs_filename);
return NULL;
}
retval->filename = abs_filename;

View file

@ -978,7 +978,11 @@ _nl_load_domain (domain_file, domainbinding)
data = (struct mo_file_header *) malloc (size);
if (data == NULL)
return;
{
if (use_mmap == 0)
close (fd);
return;
}
to_read = size;
read_ptr = (char *) data;
@ -1019,7 +1023,15 @@ _nl_load_domain (domain_file, domainbinding)
domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
if (domain == NULL)
return;
{
#ifdef HAVE_MMAP
if (use_mmap)
munmap ((caddr_t) data, size);
else
#endif
free (data);
return;
}
domain_file->data = domain;
domain->data = (char *) data;

View file

@ -321,7 +321,10 @@ read_alias_file (fname, fname_len)
? alias_len + value_len : 1024));
char *new_pool = (char *) realloc (string_space, new_size);
if (new_pool == NULL)
return added;
{
fclose (fp);
return added;
}
if (__builtin_expect (string_space != new_pool, 0))
{