aboutsummaryrefslogtreecommitdiffstats
path: root/man3/malloc_hook.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/malloc_hook.3')
-rw-r--r--man3/malloc_hook.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/malloc_hook.3 b/man3/malloc_hook.3
index f3f5540825..3a56f8fef6 100644
--- a/man3/malloc_hook.3
+++ b/man3/malloc_hook.3
@@ -47,11 +47,11 @@ points at a function that is called once when the malloc implementation
is initialized.
This is a weak variable, so it can be overridden in
the application with a definition like the following:
-.br
.nf
+
void (*__malloc_initialize_hook)(void) = my_init_hook;
+
.fi
-.br
Now the function
.IR my_init_hook ()
can do the initialization of all hooks.