Reihenfolge bei calloc (reine codekosmetik)

This commit is contained in:
Enno Rehling 2005-05-09 22:40:15 +00:00
parent 198f2cf90f
commit 434540fd9e
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ msg_create(const struct message_type * type, void * args[])
return NULL;
}
msg->type = type;
msg->parameters = (void**)calloc(sizeof(void*), type->nparameters);
msg->parameters = (void**)calloc(type->nparameters, sizeof(void*));
msg->refcount=1;
for (i=0;i!=type->nparameters;++i) {
msg->parameters[i] = copy_arg(type->types[i], args[i]);