Quellcode durchsuchen

fix regression/typo that disabled __simple_malloc when calloc is used

commit ba819787ee93ceae94efd274f7849e317c1bff58 introduced this
regression. since the __malloc0 weak alias was not properly provided
by __simple_malloc, use of calloc forced the full malloc to be linked.
Rich Felker vor 9 Jahren
Ursprung
Commit
153e952e1a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/malloc/lite_malloc.c

+ 1 - 1
src/malloc/lite_malloc.c

@@ -47,4 +47,4 @@ void *__simple_malloc(size_t n)
 }
 
 weak_alias(__simple_malloc, malloc);
-weak_alias(__simple_malloc, malloc0);
+weak_alias(__simple_malloc, __malloc0);