Fix VARSYMP for empty symbol names.
[fiveam.git] / src / utils.lisp
index d23aff7..49d552f 100644 (file)
@@ -92,7 +92,10 @@ ELSE will be executed."
                  (acond2 ,@others)))))))
 
 (defun varsymp (x)
-  (and (symbolp x) (eq (aref (symbol-name x) 0) #\?)))
+  (and (symbolp x)
+       (let ((name (symbol-name x)))
+         (and (>= (length name) 2)
+              (char= (char name 0) #\?)))))
 
 (defun binding (x binds)
   (labels ((recbind (x binds)