5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-03 01:17:58 +03:00

fix #5714: fix calloc parameter ordering

It's (count, size), not (size, count).
Newer compilers complain bout this.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-09-23 10:27:34 +02:00
parent ea4c1ccb2c
commit 812d22ee21

View File

@ -366,7 +366,7 @@ handle_vzdump_handshake(struct Client *client, struct json_object *data)
void
add_new_client(int client_fd)
{
struct Client *client = calloc(sizeof(struct Client), 1);
struct Client *client = calloc(1, sizeof(struct Client));
if (client == NULL) {
fprintf(stderr, "could not add new client - allocation failed!\n");
fflush(stderr);