diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-12 10:32:56 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-09-20 16:08:30 +0200 |
commit | 97ebbc1c0be0464b1139ca8044a511d7516c75fa (patch) | |
tree | b9aee6de1c95342294d8c49e6d7c26a8fffc7d59 | |
parent | ff8c54d766a34c1a2dfa22707a2791e10e43c0be (diff) | |
download | spice-97ebbc1c0be0464b1139ca8044a511d7516c75fa.tar.gz spice-97ebbc1c0be0464b1139ca8044a511d7516c75fa.tar.xz spice-97ebbc1c0be0464b1139ca8044a511d7516c75fa.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.
-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 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; } |