mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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.
This commit is contained in:
parent
ff8c54d766
commit
97ebbc1c0b
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user