From 1aa0f1abf48710015970d13e308ae92b193429b7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 9 Jun 2020 11:45:55 +0200 Subject: [PATCH] lib/strutils: use directly err() Signed-off-by: Karel Zak --- lib/strutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strutils.c b/lib/strutils.c index 5a8cd50370..304f314076 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -1060,7 +1060,7 @@ static int test_strdup_to_member(int argc, char *argv[]) xx = calloc(1, sizeof(*xx)); if (!xx) - err_oom(); + err(EXIT_FAILURE, "calloc() failed"); strdup_to_struct_member(xx, name, argv[1]); strdup_to_struct_member(xx, value, argv[2]); -- 2.47.2