Signed-off-by: F. Aragon <paco@voltanet.io>
struct ecommunity *ecom = NULL;
regex_t *regex = NULL;
+ if (str == NULL)
+ return COMMUNITY_LIST_ERR_MALFORMED_VAL;
+
entry = NULL;
/* Get community list. */
entry = community_entry_new();
entry->direct = direct;
entry->style = style;
- entry->any = (str ? 0 : 1);
+ entry->any = 0;
if (ecom)
entry->config = ecommunity_ecom2str(
ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST, 0);
vector vline, unsigned int n)
{
// doesn't make sense for these to be inequal length
+ assert(first && second);
assert(first->count == second->count);
assert(first->count == vector_active(vline) - n + 1);