--- rpm-4.4.6/rpmdb/header.c.pix 2006-12-15 15:42:07.000000000 +0100 +++ rpm-4.4.6/rpmdb/header.c 2006-12-15 17:34:58.000000000 +0100 @@ -3487,7 +3487,7 @@ if (isxml) { const char * tagN = myTagName(hsa->tags, spft->u.tag.tag); -assert(tagN != NULL); /* XXX splats pick up old or unknown tags. */ + //assert(tagN != NULL); /* XXX splats pick up old or unknown tags. */ need = sizeof(" <rpmTag name=\"\">\n") - 1; if (tagN != NULL) need += strlen(tagN); @@ -3503,7 +3503,7 @@ if (isyaml) { const char * tagN = myTagName(hsa->tags, spft->u.tag.tag); -assert(tagN != NULL); /* XXX splats pick up old or unknown tags. */ + if (tagN == NULL) break; need = sizeof(" : ") - 1; if (tagN != NULL) need += strlen(tagN);