From 39c5d01f30a99d94dc89411a8e1ab103e2fc3074 Mon Sep 17 00:00:00 2001 From: krw Date: Wed, 11 Jul 2018 07:39:22 +0000 Subject: [PATCH] Do for most running out of memory err() what was done for most running out of memory log_warn(). i.e. ("%s", __func__) instead of manual function names and redundant verbiage about which wrapper detected the out of memory condition. ok henning@ --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index c906d9f..e4a041a 100644 --- a/parse.y +++ b/parse.y @@ -331,7 +331,7 @@ eow: } } if ((str = strdup(buf)) == NULL) - err(1, "strdup"); + err(1, "%s", __func__); yylval.str = str; return TSTRING; } -- 2.39.2