move variable decleration to head of code block

Signed-off-by: Aric Stewart <aric@codeweavers.com>
This commit is contained in:
Aric Stewart 2012-04-18 08:59:20 -05:00 committed by Alon Levy
parent 6bb8d93bbf
commit 6af29a97ac

View File

@ -386,9 +386,9 @@ static int verify_subject(X509* cert, SpiceOpenSSLVerify* verify)
if (ret == 0) {
spice_debug("subjects match");
} else {
char *p;
spice_debug("subjects mismatch");
char *p;
p = X509_NAME_oneline(cert_subject, NULL, 0);
spice_debug("cert_subject: %s", p);
free(p);