forked from github/server
fix last commit, broke the gcc travis build.
This commit is contained in:
parent
490782e750
commit
9f542e081b
|
@ -146,7 +146,7 @@ message *msg_create(const struct message_type *mtype, variant args[])
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
msg->type = mtype;
|
msg->type = mtype;
|
||||||
msg->parameters = (variant *)mtype->nparameters ? calloc(mtype->nparameters, sizeof(variant)) : NULL;
|
msg->parameters = (variant *)(mtype->nparameters ? calloc(mtype->nparameters, sizeof(variant)) : NULL);
|
||||||
msg->refcount = 1;
|
msg->refcount = 1;
|
||||||
for (i = 0; i != mtype->nparameters; ++i) {
|
for (i = 0; i != mtype->nparameters; ++i) {
|
||||||
msg->parameters[i] = copy_arg(mtype->types[i], args[i]);
|
msg->parameters[i] = copy_arg(mtype->types[i], args[i]);
|
||||||
|
|
Loading…
Reference in New Issue