diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-06-06 18:47:44 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-06-19 12:48:07 +0200 |
commit | c14e98479bd3cb3667e283e815c238135db2edc1 (patch) | |
tree | ab4a6188c36cea2cb3a7dc76553f8874cb7d8a37 /ui/vnc.c | |
parent | 64641d876466333b833e8a188a46e2e06c008bac (diff) | |
download | qemu-c14e98479bd3cb3667e283e815c238135db2edc1.tar.gz qemu-c14e98479bd3cb3667e283e815c238135db2edc1.tar.bz2 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/vnc.c')
-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; } |