fix a few other bugs as long as we're going to make an upload
[debian/amanda] / server-src / diskfile.c
index 5c3662ef558227b7546fa778c6d21c9ddc67f5e1..f25b50be82534c0bc366c3848c0ec0db57f6aefe 100644 (file)
@@ -1784,7 +1784,6 @@ xml_scripts(
     xml_app_t   xml_app;
 
     xml_app.features = their_features;
-    xml_app.result   = stralloc("");
 
     xml_scr = stralloc("");
     for (pp_scriptlist1=pp_scriptlist; pp_scriptlist1 != NULL;
@@ -1881,6 +1880,7 @@ xml_scripts(
                                  "</execute_on>\n", NULL);
        amfree(eo_str);
        proplist = pp_script_get_property(pp_script);
+        xml_app.result   = stralloc("");
        g_hash_table_foreach(proplist, xml_property, &xml_app);
        xml_scr = vstrextend(&xml_scr, xml_scr1, xml_app.result, "  </script>\n", NULL);
        amfree(b64plugin);