From fe7337447c2c2f0bed3e228bb9c5a035536e7fe4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 8 Feb 2012 09:35:17 +0000 Subject: Timothy Redaelli: file name manipulations in history can return NULL if HAVE_CANONICALIZE_FILE_NAME --- Src/hist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src') 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; -- cgit 1.4.1