forked from github/server
Reihenfolge bei calloc (reine codekosmetik)
This commit is contained in:
parent
198f2cf90f
commit
434540fd9e
|
@ -145,7 +145,7 @@ msg_create(const struct message_type * type, void * args[])
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
msg->type = type;
|
msg->type = type;
|
||||||
msg->parameters = (void**)calloc(sizeof(void*), type->nparameters);
|
msg->parameters = (void**)calloc(type->nparameters, sizeof(void*));
|
||||||
msg->refcount=1;
|
msg->refcount=1;
|
||||||
for (i=0;i!=type->nparameters;++i) {
|
for (i=0;i!=type->nparameters;++i) {
|
||||||
msg->parameters[i] = copy_arg(type->types[i], args[i]);
|
msg->parameters[i] = copy_arg(type->types[i], args[i]);
|
||||||
|
|
Loading…
Reference in New Issue