1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

C code bug fixes

- fix to buildin.c to prevent compiler from optimizing it out
- fix to realpath.c to handle case where 'path' is NULL

- fix to emacs.c (I think from dgk)

- fix to file.c (I think from gsf)
- fix to tail.c (I think from gsf)

- fix to code setting the malloc init hook (for vmalloc)

- changed memcpy to memmove in several places in sfio because src and dst
  might overlap

- fixes to macros like FILE_defined to fix header file issues
- fixes to expr.h to handle macro definition issue
This commit is contained in:
Lefteris Koutsofios 2020-02-12 13:09:47 -05:00
parent 0b36868c8c
commit e8b3274a65
17 changed files with 62 additions and 36 deletions

View file

@ -823,7 +823,7 @@ static void vm_initialize_hook(void)
__realloc_hook = vm_realloc_hook;
}
void (*__malloc_initialize_hook)(void) = vm_initialize_hook;
typeof (__malloc_initialize_hook) __malloc_initialize_hook = vm_initialize_hook;
#if 0 /* 2012-02-29 this may be needed to cover shared libs */