summaryrefslogtreecommitdiff
path: root/Src/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c
index aeb6edda5..4d522dddb 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -1664,6 +1664,11 @@ chrealpath(char **junkptr)
errno == ENAMETOOLONG || errno == ENOMEM)
return 0;
+#ifdef HAVE_CANONICALIZE_FILE_NAME
+ if (!real)
+ return 0;
+#endif
+
if (nonreal == *junkptr) {
*real = '\0';
break;