summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-08-12 10:32:56 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-08-17 12:17:07 +0200
commita046b7c8427095e145c5052798de18a23a6fa8b0 (patch)
tree8428e082001af02bb706434c05def00320eb7069
parentae4705830661adf0a4d0045be9aa6e652d6d2ce7 (diff)
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.
-rw-r--r--client/red_client.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}