26 lines
720 B
Diff
26 lines
720 B
Diff
|
From c26d938f18d4c92ec515e82037eda42b0e2999ef Mon Sep 17 00:00:00 2001
|
||
|
From: Jan Grulich <jgrulich@redhat.com>
|
||
|
Date: Wed, 2 Jan 2019 10:05:40 +0100
|
||
|
Subject: [PATCH 1/2] Avoid invalid conversion error with C++ compilators
|
||
|
|
||
|
---
|
||
|
src/pipewire/utils.h | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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);
|
||
|
--
|
||
|
2.19.2
|
||
|
|