Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 2e20fbe220a1d0f48a15d5008a7dd680 > files > 28

rpm-4.4.6-22.1mdv2007.1.src.rpm

--- 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);