pw-cli: allocate nodes ids of the right size

This commit is contained in:
Wim Taymans 2020-05-20 15:21:44 +02:00
parent 08ffc507c0
commit 60742d7542

View file

@ -1742,7 +1742,7 @@ children_of(struct remote_data *rd, uint32_t parent_id,
if (!count) if (!count)
return 0; return 0;
*children = malloc(sizeof(*children) * count); *children = malloc(sizeof(uint32_t) * count);
if (!*children) if (!*children)
return -1; return -1;
} }