mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
vnc: Drop superfluous conditionals around g_strdup()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
64641d8764
commit
c14e98479b
1 changed files with 1 additions and 4 deletions
5
ui/vnc.c
5
ui/vnc.c
|
@ -3009,10 +3009,7 @@ int vnc_display_password(DisplayState *ds, const char *password)
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(vs->password);
|
g_free(vs->password);
|
||||||
vs->password = NULL;
|
vs->password = g_strdup(password);
|
||||||
if (password) {
|
|
||||||
vs->password = g_strdup(password);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue