This will catch errors as just fixed in the exec plugin in the future.
sstrncpy (meta->name, name, sizeof (meta->name));
meta->type = type;
- meta->next = NULL;
switch (type)
{
}
} /* switch (type) */
+ meta->next = NULL;
tail = n->meta;
while ((tail != NULL) && (tail->next != NULL))
tail = tail->next;
{
notification_meta_t *meta;
+ assert (dst != NULL);
+ assert (src != NULL);
+ assert (dst != src);
+ assert ((src->meta == NULL) || (src->meta != dst->meta));
+
for (meta = src->meta; meta != NULL; meta = meta->next)
{
if (meta->type == NM_TYPE_STRING)