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>
This commit is contained in:
parent
86152436eb
commit
9d64fab422
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user