diff options
author | Jan Grulich <jgrulich@redhat.com> | 2019-01-02 10:05:40 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-01-11 10:25:27 +0100 |
commit | c26d938f18d4c92ec515e82037eda42b0e2999ef (patch) | |
tree | ab4de64b08c7580ee226c06e40c9fd5a43ac86a0 | |
parent | bcec14decbdd61eb200abfc396f779cc89c0dade (diff) |
Avoid invalid conversion error with C++ compilators
-rw-r--r-- | src/pipewire/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipewire/utils.h b/src/pipewire/utils.h index 2ce9fdde..7262ff42 100644 --- a/src/pipewire/utils.h +++ b/src/pipewire/utils.h @@ -58,7 +58,7 @@ pw_spa_pod_copy(const struct spa_pod *pod) return NULL; size = SPA_POD_SIZE(pod); - if ((c = malloc(size)) == NULL) + if ((c = (struct spa_pod *) malloc(size)) == NULL) return NULL; return (struct spa_pod *) memcpy(c, pod, size); |