qssb_append_path_policies(): Add explicit type cast for c++

This commit is contained in:
Albert S. 2021-08-07 12:05:58 +02:00
vanhempi a585db7778
commit 75f607bc35

2
qssb.h
Näytä tiedosto

@ -219,7 +219,7 @@ int qssb_append_path_policies(struct qssb_policy *qssb_policy, unsigned int path
path = va_arg(args, char*); path = va_arg(args, char*);
while(path != NULL) while(path != NULL)
{ {
struct qssb_path_policy *newpolicy = calloc(1, sizeof(struct qssb_path_policy)); struct qssb_path_policy *newpolicy = (struct qssb_path_policy *) calloc(1, sizeof(struct qssb_path_policy));
if(newpolicy == NULL) if(newpolicy == NULL)
{ {
QSSB_LOG_ERROR("Failed to allocate memory for path policy\n"); QSSB_LOG_ERROR("Failed to allocate memory for path policy\n");