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:
parent
2d94fe732a
commit
19b27c846e
@ -1021,6 +1021,7 @@ read_new( const char *filename, VipsImage *out )
|
|||||||
read->prims[2][1] = CIE_y_b;
|
read->prims[2][1] = CIE_y_b;
|
||||||
read->prims[3][0] = CIE_x_w;
|
read->prims[3][0] = CIE_x_w;
|
||||||
read->prims[3][1] = CIE_y_w;
|
read->prims[3][1] = CIE_y_w;
|
||||||
|
read->buffer = NULL;
|
||||||
|
|
||||||
g_signal_connect( out, "close",
|
g_signal_connect( out, "close",
|
||||||
G_CALLBACK( read_destroy ), read );
|
G_CALLBACK( read_destroy ), read );
|
||||||
|
Loading…
Reference in New Issue
Block a user