From 9d64fab42274fb50a39bab184f79d0239596ba4a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 17 Sep 2014 09:33:15 +0200 Subject: [PATCH] vnc-tls: Clean up dead store in vnc_set_x509_credential() Signed-off-by: Markus Armbruster Signed-off-by: Gerd Hoffmann --- ui/vnc-tls.c | 2 -- 1 file changed, 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); -- GitLab