diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-22 23:29:21 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-22 23:29:21 +0000 |
commit | 9f5723118020f4323933d105ce766d3779833ab0 (patch) | |
tree | 54925944110acd914e170d8153258cf7fa834c79 /gdk-pixbuf/io-pnm.c | |
parent | 7a49929986e122560e436fe0268f53c5d11ae2fd (diff) | |
download | gdk-pixbuf-9f5723118020f4323933d105ce766d3779833ab0.tar.gz |
0.5.0 - Federico
Diffstat (limited to 'gdk-pixbuf/io-pnm.c')
-rw-r--r-- | gdk-pixbuf/io-pnm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index 6d61db91b..c0b0b1df2 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -392,7 +392,6 @@ pnm_read_raw_scanline (PnmLoaderContext *context) default: g_warning ("io-pnm.c: Illegal raw pnm type!\n"); return PNM_FATAL_ERR; - break; } numpix = MIN (numpix, context->width - context->output_col); @@ -418,7 +417,7 @@ pnm_read_raw_scanline (PnmLoaderContext *context) break; default: g_warning ("io-pnm.c: Illegal raw pnm type!\n"); - break; + return PNM_FATAL_ERR; } memcpy (context->dptr + offset, inbuf->next_byte, numbytes); @@ -458,6 +457,8 @@ pnm_read_ascii_scanline (PnmLoaderContext *context) g_return_val_if_fail (context != NULL, PNM_FATAL_ERR); + data = mask = 0; + inbuf = &context->inbuf; context->dptr = context->pixels + |