pot_profile *profile = NULL;
u8 *name = 0;
- if (mp->list_name_len)
- name = format(0, "%s", mp->list_name);
+ name = vl_api_from_api_to_vec(&mp->list_name);
pot_profile_list_init(name);
id = mp->id;
u8 id;
u8 *name = NULL;
- if (mp->list_name_len)
- name = format(0, "%s", mp->list_name);
+ name = vl_api_from_api_to_vec(&mp->list_name);
if (!pot_profile_list_is_enabled(name)) {
rv = -1;
} else {