debian update
[kmrcl.git] / xml-utils.lisp
index 860d6750a4e4a7e28686a2c4e2f6419935975558..fc80feb77e33ae86904fcfc6677cb4c324412a99 100644 (file)
@@ -7,8 +7,6 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id$
-;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 ;;;; KMRCL users are granted the rights to distribute and use this software
@@ -83,6 +81,8 @@ and position of character following end tag."
 
 (defun write-cdata (str s)
   (declare (simple-string str) (optimize (speed 3) (safety 0) (space 0)))
+  (unless str
+    (return-from write-cdata nil))
   (do ((len (length str))
        (i 0 (1+ i)))
       ((= i len) str)
@@ -173,4 +173,3 @@ and position of character following end tag."
                     :organization organization :type type :label label :language language
                     :url url :entities entities))
   stream)
-