From 58ca01047c5da6f244525ca612154d220cef8819 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 12 May 2026 10:51:30 -0400 Subject: Use log_print_error instead of SYSERROR * Add comment so I don't accidentally do it again --- src/lib/core/str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/core/str.c b/src/lib/core/str.c index 447fc78..c31ce5e 100644 --- a/src/lib/core/str.c +++ b/src/lib/core/str.c @@ -11,7 +11,7 @@ char *strdup_maybe_entry(const char * restrict s, const struct ExecPoint ep, con if (s != NULL) { char *x = strdup(s); if (!x) { - SYSERROR("unable to duplicate string"); + // We want to trace the origin of the allocation so SYSERROR can't be used here. log_print_error(ep, "out of memory"); exit(exit_code); } -- cgit