mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-27 11:52:43 +00:00
reds: Reuse "sin" variable
reds->vdagent was just set to "sin". Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
f3a97a001b
commit
9d9f4946b8
@ -3138,9 +3138,9 @@ static RedCharDevice *attach_to_red_agent(RedsState *reds, SpiceCharDeviceInstan
|
||||
reds->vdagent = sin;
|
||||
reds_update_mouse_mode(reds);
|
||||
|
||||
sif = spice_char_device_get_interface(reds->vdagent);
|
||||
sif = spice_char_device_get_interface(sin);
|
||||
if (sif->state) {
|
||||
sif->state(reds->vdagent, 1);
|
||||
sif->state(sin, 1);
|
||||
}
|
||||
|
||||
if (!reds_main_channel_connected(reds)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user