]> git.kaiwu.me - haproxy.git/commit
BUILD: activity/memprofile: fix a build warning in the posix_memalign handler
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Nov 2024 08:41:02 +0000 (09:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Nov 2024 08:42:49 +0000 (09:42 +0100)
commitb30639848e502f79829abc28c8093aa0e34ba1f9
tree78bf1cb810f59b6a38c112b69fdfeefb207f2e23
parentb150ae46dd97caa5050d8abefc1d9b619ab5ab9a
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.
src/activity.c