From f89d43a3812e613466c5f486238e9ee440bd43aa Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sun, 3 Jan 2021 20:04:37 +0100 Subject: [PATCH] MINOR: lua: Use consistent error message 'memory allocation failed' Other locations in the configuration parser use 'memory allocation failed', so use this one as well. --- src/hlua.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index 7ac0274a2..6fff60147 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -8384,17 +8384,17 @@ static int hlua_config_prepend_path(char **args, int section_type, struct proxy p = calloc(1, sizeof(*p)); if (p == NULL) { - memprintf(err, "out of memory error"); + memprintf(err, "memory allocation failed"); goto err; } p->path = strdup(path); if (p->path == NULL) { - memprintf(err, "out of memory error"); + memprintf(err, "memory allocation failed"); goto err2; } p->type = strdup(type); if (p->type == NULL) { - memprintf(err, "out of memory error"); + memprintf(err, "memory allocation failed"); goto err2; } LIST_ADDQ(&prepend_path_list, &p->l);