check if ext->name is null before strcmp()