diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-12 10:32:56 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-15 11:22:42 +0200 |
commit | 855f2ed2ac6a67e88d6f6626641af508b887cd4b (patch) | |
tree | eebbce2a72689546fdef1fbdae37df5da3d59fe8 /client/red_client.cpp | |
parent | c5a291f454a552604807e8dc995c060bfa41a8b9 (diff) | |
download | spice-855f2ed2ac6a67e88d6f6626641af508b887cd4b.tar.gz spice-855f2ed2ac6a67e88d6f6626641af508b887cd4b.tar.xz spice-855f2ed2ac6a67e88d6f6626641af508b887cd4b.zip |
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.
Diffstat (limited to 'client/red_client.cpp')
-rw-r--r-- | client/red_client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp index e0847599..efd9febd 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -740,6 +740,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; } |