Searched refs:newprops (Results 1 – 2 of 2) sorted by relevance
4620 MTPProperties *newprops; in ptp_get_new_object_prop_entry() local4624 newprops = malloc(sizeof(MTPProperties)*(*nrofprops+1)); in ptp_get_new_object_prop_entry()4626 newprops = realloc(*props,sizeof(MTPProperties)*(*nrofprops+1)); in ptp_get_new_object_prop_entry()4628 if (newprops == NULL) in ptp_get_new_object_prop_entry()4630 prop = &newprops[*nrofprops]; in ptp_get_new_object_prop_entry()4636 (*props) = newprops; in ptp_get_new_object_prop_entry()
2243 MTPProperties *newprops; in get_all_metadata_fast() local2247 …newprops = realloc(params->objects[i].mtpprops,(params->objects[i].nrofmtpprops+1)*sizeof(MTPPrope… in get_all_metadata_fast()2249 newprops = calloc(sizeof(MTPProperties),1); in get_all_metadata_fast()2251 if (!newprops) return 0; /* FIXME: error handling? */ in get_all_metadata_fast()2252 params->objects[i].mtpprops = newprops; in get_all_metadata_fast()