From 6beda1bcee4396ceced99b8a8c5627940f507ace Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Dec 2020 23:09:31 +0000 Subject: internals: error tracing: record the not-found path upon ENOENT as needed. --- src/internal/slibtool_errinfo_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal/slibtool_errinfo_impl.c') diff --git a/src/internal/slibtool_errinfo_impl.c b/src/internal/slibtool_errinfo_impl.c index 472c818..84f019e 100644 --- a/src/internal/slibtool_errinfo_impl.c +++ b/src/internal/slibtool_errinfo_impl.c @@ -34,7 +34,7 @@ int slbt_record_error( erri->efunction = efunction; erri->eline = eline; erri->eflags = eflags; - erri->eany = eany; + erri->eany = (eany && (esyscode == ENOENT)) ? strdup(eany) : eany; ictx->errinfp++; -- cgit v1.2.3