]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/leakfile.c
Merge commit '515673c08f8718a237e90c2130a1f5294f966d6a'
[xonotic/netradiant.git] / tools / quake3 / q3map2 / leakfile.c
index adcaca7158389b0e2efcbfa2386ef24a6f258a62..fc5a3191fb38ce206fba405d98450bd414e15952 100644 (file)
@@ -1,6 +1,6 @@
 /* -------------------------------------------------------------------------------
 
-Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
 For a list of contributors, see the accompanying CONTRIBUTORS file.
 
 This file is part of GtkRadiant.
@@ -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