pretty-print dzsave xml output

This commit is contained in:
John Cupitt 2014-07-02 09:01:26 +01:00
parent 98e156301c
commit 3913ef5c89

View File

@ -839,10 +839,7 @@ write_vips_meta( VipsForeignSaveDz *dz )
return( -1 ); return( -1 );
} }
/* Double-cast stops a bogus gcc 4.1 compiler warning. xmlDocDumpFormatMemory( doc, (xmlChar **) &dump, &dump_size, 1 );
xmlDocDumpMemory( doc, (xmlChar **) ((char *) &dump), &dump_size );
*/
xmlDocDumpMemory( doc, (xmlChar **) &dump, &dump_size );
if( !dump ) { if( !dump ) {
vips_error( class->nickname, "%s", _( "xml save error" ) ); vips_error( class->nickname, "%s", _( "xml save error" ) );
xmlFreeDoc( doc ); xmlFreeDoc( doc );