]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: lua: Use consistent error message 'memory allocation failed'
authorTim Duesterhus <tim@bastelstu.be>
Sun, 3 Jan 2021 19:04:37 +0000 (20:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2021 19:37:16 +0000 (20:37 +0100)
Other locations in the configuration parser use 'memory allocation failed', so
use this one as well.

src/hlua.c

index 7ac0274a26f3eb8a1f58c3c48f062f0f4342f67a..6fff601473cd2380d9f0a08fcdc5c77dee0f0734 100644 (file)
@@ -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);