]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
Might as well free current_file
[ext/subsurface.git] / parse-xml.c
index a36758ca0e72da72e85904cce1fee4001ff0c025..ab77cb59bff5a77a2badb0a8ea6e41e4b1a6c0db 100644 (file)
@@ -1102,6 +1102,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf)
                return;
        if (MATCH(".suit", utf8_string, &dive->suit))
                return;
+       if (MATCH(".divesuit", utf8_string, &dive->suit))
+               return;
        if (MATCH(".notes", utf8_string, &dive->notes))
                return;
        if (MATCH(".divemaster", utf8_string, &dive->divemaster))
@@ -1418,8 +1420,8 @@ void parse_xml_buffer(const char *url, const char *buffer, int size, GError **er
                }
                return;
        }
-       /* we assume that the last (or only) filename passed as argument is a 
-        * great filename to use as default when saving the dives */ 
+       /* we assume that the last (or only) filename passed as argument is a
+        * great filename to use as default when saving the dives */
        set_filename(url);
        reset_all();
        dive_start();