summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9cce91)
raw | patch | inline | side by side (parent: c9cce91)
author | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Fri, 13 Jun 2008 12:57:10 +0000 (14:57 +0200) | ||
committer | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Fri, 13 Jun 2008 12:57:10 +0000 (14:57 +0200) |
This will catch errors as just fixed in the exec plugin in the future.
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 77041c9ef9d8e015c489c46df87d834bd7885139..2d431db360b53127b10cbfc5c025142b6c28bb58 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
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)