[Spice-commits] server/reds.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 6 17:42:02 UTC 2020
server/reds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9d9f4946b8f604b1ae282a69007fc7935f597b73
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Sun Aug 18 08:25:57 2019 +0100
reds: Reuse "sin" variable
reds->vdagent was just set to "sin".
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/reds.c b/server/reds.c
index f0173613..5aa7f145 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -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)) {
More information about the Spice-commits
mailing list