missing ! on vips_dbuf_write_amp()
This commit is contained in:
parent
080ab87d37
commit
6ea7085116
@ -240,23 +240,23 @@ vips_dbuf_write_amp( VipsDbuf *dbuf, const char *str )
|
|||||||
* control characters, so we can use them -- thanks
|
* control characters, so we can use them -- thanks
|
||||||
* electroly.
|
* electroly.
|
||||||
*/
|
*/
|
||||||
if( vips_dbuf_writef( dbuf, "&#x%04x;", 0x2400 + *p ) )
|
if( !vips_dbuf_writef( dbuf, "&#x%04x;", 0x2400 + *p ) )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
else if( *p == '<' ) {
|
else if( *p == '<' ) {
|
||||||
if( vips_dbuf_write( dbuf, (guchar *) "<", 4 ) )
|
if( !vips_dbuf_write( dbuf, (guchar *) "<", 4 ) )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
else if( *p == '>' ) {
|
else if( *p == '>' ) {
|
||||||
if( vips_dbuf_write( dbuf, (guchar *) ">", 4 ) )
|
if( !vips_dbuf_write( dbuf, (guchar *) ">", 4 ) )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
else if( *p == '&' ) {
|
else if( *p == '&' ) {
|
||||||
if( vips_dbuf_write( dbuf, (guchar *) "&", 5 ) )
|
if( !vips_dbuf_write( dbuf, (guchar *) "&", 5 ) )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if( vips_dbuf_write( dbuf, (guchar *) p, 1 ) )
|
if( !vips_dbuf_write( dbuf, (guchar *) p, 1 ) )
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user