Ensure to start with nil data into convert function

This commit is contained in:
Loic Guegan 2019-02-19 14:09:50 +01:00
parent 78f05ba362
commit 9a72240067

View file

@ -20,6 +20,7 @@
;;; Program entry point
(defun convert (platform dot-file)
"Parse Simgrid platform then write it into a dot file."
(setf *hosts* nil *links* nil) ; Be sure to clear hosts and links
(let ((xml-parser (make-instance 'xml-parser-state
:seed (cons 0 0)
:new-element-hook #'handle-element)))