about summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-02-08 09:35:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-02-08 09:35:17 +0000
commitfe7337447c2c2f0bed3e228bb9c5a035536e7fe4 (patch)
treeac3be90125f5c597719aaedd9023f671abfc07f3 /Src/hist.c
parenta84560cbf26ca9a03492412b091249c5d10a7456 (diff)
downloadzsh-fe7337447c2c2f0bed3e228bb9c5a035536e7fe4.tar.gz
zsh-fe7337447c2c2f0bed3e228bb9c5a035536e7fe4.tar.xz
zsh-fe7337447c2c2f0bed3e228bb9c5a035536e7fe4.zip
Timothy Redaelli: file name manipulations
in history can return NULL if HAVE_CANONICALIZE_FILE_NAME
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;