diff options
author | Markus Armbruster | 2014-06-06 18:47:44 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2014-06-19 12:48:07 +0200 |
commit | c14e98479bd3cb3667e283e815c238135db2edc1 (patch) | |
tree | ab4a6188c36cea2cb3a7dc76553f8874cb7d8a37 /ui | |
parent | vnc: Drop superfluous conditionals around g_free() (diff) | |
download | qemu-c14e98479bd3cb3667e283e815c238135db2edc1.tar.gz qemu-c14e98479bd3cb3667e283e815c238135db2edc1.tar.xz qemu-c14e98479bd3cb3667e283e815c238135db2edc1.zip |
vnc: Drop superfluous conditionals around g_strdup()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3009,10 +3009,7 @@ int vnc_display_password(DisplayState *ds, const char *password) } g_free(vs->password); - vs->password = NULL; - if (password) { - vs->password = g_strdup(password); - } + vs->password = g_strdup(password); return 0; } |