aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrw <krw>2018-07-11 07:39:22 +0000
committerDuncaen <mail@duncano.de>2019-01-30 23:19:17 +0100
commit39c5d01f30a99d94dc89411a8e1ab103e2fc3074 (patch)
treef22d8e3cc6380ad355a07cc5afa109905431289c
parented7fb0a2f40f2f51304f676963a459f2986f5ea0 (diff)
downloadopendoas-39c5d01f30a99d94dc89411a8e1ab103e2fc3074.tar.gz
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@
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
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;
}