diff --git a/src/common/util/message.c b/src/common/util/message.c index e7299eae9..ab3734ed5 100644 --- a/src/common/util/message.c +++ b/src/common/util/message.c @@ -62,8 +62,12 @@ mt_new(const char * name, const char * args[]) char * cp = strncpy((char*)malloc(spos-x+1), x, spos-x); cp[spos-x] = '\0'; mtype->pnames[i] = cp; - /* optimierung: Typ-Strings zentral verwalten. */ mtype->types[i] = find_argtype(spos+1); + if (mtype->types[i]==NULL) { + log_error(("unknown argument type %s for message type %s\n", + spos+1, mtype->name)); + } + assert(mtype->types[i]); } } return mtype;