]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/leakfile.c
q3map2 is now waring free
[xonotic/netradiant.git] / tools / quake3 / q3map2 / leakfile.c
index 51fda30021cea41edcbe2bad23bcd87ee88a3898..fc5a3191fb38ce206fba405d98450bd414e15952 100644 (file)
@@ -81,15 +81,15 @@ xmlNodePtr LeakFile (tree_t *tree)
        if (!linefile)
                Error ("Couldn't open %s\n", filename);
 
-  xml_node = xmlNewNode (NULL, "polyline");
+  xml_node = xmlNewNode (NULL, (xmlChar*)"polyline");
 
        count = 0;
        node = &tree->outside_node;
        while (node->occupied > 1)
        {
                int                     next;
-               portal_t        *p, *nextportal;
-               node_t          *nextnode;
+               portal_t        *p, *nextportal = NULL;
+               node_t          *nextnode = NULL;
                int                     s;
 
                // find the best portal exit