[FIX] condition was crashing if argument wasn't file:// - clic - Clic is an command line interactive client for gopher written in Common LISP (HTM) git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/ (DIR) Log (DIR) Files (DIR) Refs (DIR) Tags (DIR) README (DIR) LICENSE --- (DIR) commit eaf1d765d6db7ab9cd6d5214953d07a277497594 (DIR) parent 3028c011e0cdfa70a7adbfaa120f04bce79e563f (HTM) Author: Solene Rapenne <solene@perso.pw> Date: Thu, 1 Feb 2018 21:40:44 +0100 [FIX] condition was crashing if argument wasn't file:// Diffstat: M clic.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/clic.lisp b/clic.lisp @@ -677,7 +677,7 @@ ;; if not empty we use it or we will use a default url (if argv ;; is it a file ? - (if (= 0 (search "file://" argv)) + (if (= 0 (or (search "file://" argv) 1)) (progn (load-file-menu (subseq argv 7)) (make-location :host 'local-file