server: Make sure g_object_new receive the correct data

Enterprise / Virtualization / SPICE - Francois Gouget [codeweavers.com] - 27 July 2016 02:43 UTC

g_object_new is a variadic function which takes property values. As the compiler cannot check if these property values are correct, make sure they are using casts. This actually fixes a crash in reds.c for 32 bit architectures.

Based on a patch by Frediano Ziglio

29caba2 server: Make sure g_object_new receive the correct data
server/reds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share