Always check for NULL when using callbacks. (#330563, Benjamin Otte)

2006-02-10  Matthias Clasen  <mclasen@redhat.com>

        * io-jpeg.c:
        * io-png.c:
        * io-pnm.c:
        * io-tiff.c:
        * io-xbm.c:
        * io-xpm.c: Always check for NULL when using callbacks.
        (#330563, Benjamin Otte)
This commit is contained in:
Matthias Clasen
2006-02-10 19:02:38 +00:00
committed by Matthias Clasen
parent adce3190f1
commit d47f64aca9
7 changed files with 38 additions and 22 deletions

View File

@ -517,7 +517,7 @@ gdk_pixbuf__png_image_load_increment(gpointer context,
lc->error = NULL;
return FALSE;
} else {
if (lc->first_row_seen_in_chunk >= 0) {
if (lc->first_row_seen_in_chunk >= 0 && lc->update_func) {
/* We saw at least one row */
gint pass_diff = lc->last_pass_seen_in_chunk - lc->first_pass_seen_in_chunk;