mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
BUILD: activity/memprofile: fix a build warning in the posix_memalign handler
A "return NULL" statement was placed for error handling in the
posix_memalign() handler instead of an int errno value, by recent
commit 5ddc8b3ad4 ("MINOR: activity/memprofile: monitor non-portable
calls as well"). Surprisingly the warning only triggered on gcc-4.8.
Let's use ENOMEM instead. No backport needed.
This commit is contained in:
parent
b150ae46dd
commit
b30639848e
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ static int memprof_posix_memalign_initial_handler(void **ptr, size_t al, size_t
|
|||
{
|
||||
if (in_memprof) {
|
||||
/* probably that dlsym() needs posix_memalign(), let's fail */
|
||||
return NULL;
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
memprof_init();
|
||||
|
|
|
|||
Loading…
Reference in a new issue