fix possible used-before-set in radiance.c

some versions of glib might not zero some parts of the Read struct

see https://github.com/jcupitt/libvips/issues/1040
This commit is contained in:
John Cupitt 2018-07-23 15:55:32 +01:00
parent 2d94fe732a
commit 19b27c846e
1 changed files with 1 additions and 0 deletions

View File

@ -1021,6 +1021,7 @@ read_new( const char *filename, VipsImage *out )
read->prims[2][1] = CIE_y_b;
read->prims[3][0] = CIE_x_w;
read->prims[3][1] = CIE_y_w;
read->buffer = NULL;
g_signal_connect( out, "close",
G_CALLBACK( read_destroy ), read );