branch: externals/hyperbole
commit b1d434fbded43c738ecef182dde4397c283a3366
Author: Bob Weiner <r...@gnu.org>
Commit: Bob Weiner <r...@gnu.org>

    hpath:expand-list - Call 'file-exists-p' only when path is non-nil
---
 hpath.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hpath.el b/hpath.el
index 0bcefef963..541e547750 100644
--- a/hpath.el
+++ b/hpath.el
@@ -1275,7 +1275,7 @@ ${variable} per path."
            (when (setq path (or (when (and path find-file-wildcards)
                                   (file-expand-wildcards path))
                                 (if exists-flag
-                                    (when (file-exists-p path)
+                                    (when (and path (file-exists-p path))
                                       (list path))
                                   (list path))))
              (if (= (length path) 1)

Reply via email to