rem: if(!d) {
add: if (!d)
context: load_dependencies(image_t *img){	unsigned i;	unsigned j;	struct Elf32_Dyn *d;	addr   needed_offset;	char   path[256];	d = (struct Elf32_Dyn *)img->dynamic_ptr;	if(!d) {		return;	}	img->needed= rldalloc(img->num_needed*sizeof(image_t*));	FATAL((!img->needed), "failed to allocate needed struct\n");	memset(img->needed, 0, img->num_needed*sizeof(image_t*));	for(i=0, j= 0; d[i].d_tag != DT_NULL; i++) {		switch(d[i].d_tag) {			case DT_NEEDED:				needed_offset = d[i].d_un.d_ptr;				sprintf(path, "/boot/lib/%s", STRING(img, needed_offset));				img->needed[j]= load_container(path, STRING(img, needed_offset), false);				j+= 1;				break;			default:				/*				 * ignore any other tag				 */				continue;		}	}	FATAL((j!= img->num_needed), "Internal error at load_dependencies()");	return;}