X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=xml-utils.lisp;fp=xml-utils.lisp;h=fc80feb77e33ae86904fcfc6677cb4c324412a99;hp=a3305caa097ce68ed1d2b45df4e9f2acd565e8fe;hb=10d5d074eb995ba586abbde88460480379fa2b16;hpb=7b673eb44e72f9b2fe1c7b9e5d5d70117c29ab34 diff --git a/xml-utils.lisp b/xml-utils.lisp index a3305ca..fc80feb 100644 --- a/xml-utils.lisp +++ b/xml-utils.lisp @@ -81,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) @@ -171,4 +173,3 @@ and position of character following end tag." :organization organization :type type :label label :language language :url url :entities entities)) stream) -