From 97ebbc1c0be0464b1139ca8044a511d7516c75fa Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 12 Aug 2011 10:32:56 +0200 Subject: [PATCH] always set VDAgentDisplayConfig::depth Even if VDAgentDisplayConfig::depth will be unused if the VD_AGENT_DISPLAY_CONFIG_FLAG_SET_COLOR_DEPTH isn't set, it's better to initialize it anyway to avoid warnings from valgrind. --- client/red_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/red_client.cpp b/client/red_client.cpp index 3de359da..d7a3e6a2 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -737,6 +737,7 @@ void RedClient::send_agent_display_config() spice_marshaller_reserve_space(message->marshaller(), sizeof(VDAgentDisplayConfig)); disp_config->flags = 0; + disp_config->depth = 0; if (_display_setting._disable_wallpaper) { disp_config->flags |= VD_AGENT_DISPLAY_CONFIG_FLAG_DISABLE_WALLPAPER; }