summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_errinfo_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/slibtool_errinfo_impl.c')
-rw-r--r--src/internal/slibtool_errinfo_impl.c2
1 files changed, 1 insertions, 1 deletions
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++;