Branch: Tag:

2014-09-03

2014-09-03 17:53:37 by Martin Nilsson <nilsson@opera.com>

memset is C89 and 4.3BSD

513:    int offset;    struct tile *last_tile = NULL;   /* int all_tiles_eq = 0; */ -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    res.width = read_uint( buff );    res.height = read_uint( buff );   
545:    unsigned int offset;    struct buffer ob;    -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    res.width = read_uint( buff );    res.height = read_uint( buff );    res.bpp = read_uint( buff );
564:    int offset;    struct property tmp;    -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    res.width = read_uint( buff );    res.height = read_uint( buff );    res.name = read_string( buff );
601:    int offset;    struct property tmp;    -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    res.width = read_uint( buff );    res.height = read_uint( buff );    res.name = read_string( buff );
638:    int h_offset;    ONERROR err;    -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    SET_ONERROR( err, free_layer, &res );    res.width = read_uint( buff );    res.height = read_uint( buff );
667:    struct layer_mask *m=xalloc(sizeof(struct layer_mask));    res.mask = m;    read_data( &loffset, lm_offset ); -  MEMSET(m, 0, sizeof( struct layer_mask )); +  memset(m, 0, sizeof( struct layer_mask ));    *m = read_layer_mask( &loffset, initial );    }   
691:    unsigned int offset;    ONERROR err;    -  MEMSET(&res, 0, sizeof(res)); +  memset(&res, 0, sizeof(res));    initial = *data;    if(data->len < 34)    Pike_error("This is not an xcf file (to little data)\n");