pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:653:    } while( tmp.type );       h_offset = xcf_read_int( buff );    lm_offset = xcf_read_int( buff );       if(lm_offset)    {    struct buffer loffset = *initial;    struct layer_mask *m=ALLOC_STRUCT(layer_mask);    res.mask = m; -  read_data( &loffset, lm_offset ); +     memset(m, 0, sizeof( struct layer_mask )); -  +  read_data( &loffset, lm_offset );    *m = read_layer_mask( &loffset, initial );    }       if(h_offset)    {    struct buffer loffset = *initial;    read_data( &loffset, h_offset );    res.image_data = read_hierarchy( &loffset, initial );    }