(PACKAGEDIR): Avoid an error with Emacs.
[elisp/flim.git] / FLIM-CFG
index b7040db..ad93717 100644 (file)
--- a/FLIM-CFG
+++ b/FLIM-CFG
@@ -80,7 +80,8 @@
                        (listp configure-package-path))
                   (delete "" configure-package-path))))
        dir)
-    (while (not (file-exists-p (setq dir (car dirs))))
+    (while (and (setq dir (car dirs))
+               (not (file-exists-p dir)))
       (setq dirs (cdr dirs)))
     dir))