chiark / gitweb /
Bug fix: (mklist ()) now returns NIL
authorespen <espen>
Sun, 5 Dec 2004 16:59:58 +0000 (16:59 +0000)
committerespen <espen>
Sun, 5 Dec 2004 16:59:58 +0000 (16:59 +0000)
glib/utils.lisp

index fa11693a7b22fb0235970e066914d1de7b1e5f7c..f0093747dce79079aed435d43bad8dbc5db0ef6d 100644 (file)
@@ -15,7 +15,7 @@
 ;; License along with this library; if not, write to the Free Software
 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-;; $Id: utils.lisp,v 1.1 2004-10-27 14:50:15 espen Exp $
+;; $Id: utils.lisp,v 1.2 2004-12-05 16:59:58 espen Exp $
 
 
 (in-package "GLIB")
@@ -53,7 +53,7 @@ (defmacro with-gc-disabled (&body body)
             (ext:gc-on)))))))
 
 (defun mklist (obj)
-  (if (atom obj) (list obj) obj))
+  (if (and obj (atom obj)) (list obj) obj))
 
 (defun namep (obj)
   (and (symbolp obj) (not (member obj '(t nil)))))