projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64641d8
)
vnc: Drop superfluous conditionals around g_strdup()
author
Markus Armbruster
<armbru@redhat.com>
Fri, 6 Jun 2014 16:47:44 +0000
(18:47 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 19 Jun 2014 10:48:07 +0000
(12:48 +0200)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c
patch
|
blob
|
history
diff --git
a/ui/vnc.c
b/ui/vnc.c
index d771a2cd4f6021ebd4e3769ea8080fe920015ed8..6c9d4f34923a59d8d33d14475fa882efa9f6c0ce 100644
(file)
--- a/
ui/vnc.c
+++ b/
ui/vnc.c
@@
-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;
}