mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 02:27:21 +03:00
Fix logic in printing
`cbopaque` can now be overriden without overriding `write_cb` in the first place. (Otherwise there would be no need to have the `cbopaque` parameter in `malloc_message`.)
This commit is contained in:
parent
34e75630cc
commit
d26636d566
3 changed files with 2 additions and 3 deletions
|
|
@ -632,7 +632,6 @@ malloc_vcprintf(void (*write_cb)(void *, const char *), void *cbopaque,
|
|||
*/
|
||||
write_cb = (je_malloc_message != NULL) ? je_malloc_message :
|
||||
wrtmessage;
|
||||
cbopaque = NULL;
|
||||
}
|
||||
|
||||
malloc_vsnprintf(buf, sizeof(buf), format, ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue