aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-09-17 09:33:15 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-09-18 08:01:53 +0200
commit9d64fab42274fb50a39bab184f79d0239596ba4a (patch)
treecc9372e37a5dd53b87dc97deb39ed65faf4985fc /ui
parent86152436eb06a76e495425c1aa862833576fbc71 (diff)
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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/vnc-tls.c b/ui/vnc-tls.c
index 63923265fd..0f59f9b28e 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);