diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-09-17 09:33:15 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-09-18 08:01:53 +0200 |
commit | 9d64fab42274fb50a39bab184f79d0239596ba4a (patch) | |
tree | cc9372e37a5dd53b87dc97deb39ed65faf4985fc /ui | |
parent | 86152436eb06a76e495425c1aa862833576fbc71 (diff) | |
download | qemu-9d64fab42274fb50a39bab184f79d0239596ba4a.zip qemu-9d64fab42274fb50a39bab184f79d0239596ba4a.tar.gz qemu-9d64fab42274fb50a39bab184f79d0239596ba4a.tar.bz2 |
vnc-tls: Clean up dead store in vnc_set_x509_credential()
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-tls.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/vnc-tls.c b/ui/vnc-tls.c index 6392326..0f59f9b 100644 --- a/ui/vnc-tls.c +++ b/ui/vnc-tls.c @@ -444,8 +444,6 @@ static int vnc_set_x509_credential(VncDisplay *vd, struct stat sb; g_free(*cred); - *cred = NULL; - *cred = g_malloc(strlen(certdir) + strlen(filename) + 2); strcpy(*cred, certdir); |