r10547: fix warning
[clsql.git] / sql / utils.lisp
index 0e40b1de6a6312cf7cca7183c5164aee402f0716..ef4f990e456afe391266e97f42ebbc14cccc19fe 100644 (file)
 
 (defun sql-escape (identifier)
   "Change hyphens to underscores, ensure string"
-  (let* ((unescaped (etypecase identifier
-                      (symbol (symbol-name identifier))
-                      (string identifier)))
-         (escaped (make-string (length unescaped))))
+  (let ((unescaped (etypecase identifier
+                    (symbol (symbol-name identifier))
+                    (string identifier))))
     (substitute #\_ #\- unescaped)))
 
 (defmacro without-interrupts (&body body)