mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Imported from libpng-1.6.0beta18.tar
This commit is contained in:
6
pngset.c
6
pngset.c
@@ -1328,6 +1328,12 @@ png_set_benign_errors(png_structrp png_ptr, int allowed)
|
||||
{
|
||||
png_debug(1, "in png_set_benign_errors");
|
||||
|
||||
/* If allowed is 1, png_benign_error() is treated as a warning.
|
||||
*
|
||||
* If allowed is 0, png_benign_error() is treated as an error (which
|
||||
* is the default behavior if png_set_benign_errors() is not called).
|
||||
*/
|
||||
|
||||
if (allowed)
|
||||
png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user