[Spice-devel] [PATCH spice-common] move variable decleration to head of code block

Aric Stewart aric at codeweavers.com
Wed Apr 18 06:59:20 PDT 2012


Signed-off-by: Aric Stewart <aric at codeweavers.com>
---
 common/ssl_verify.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index e45d26e..2f34c00 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -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);
-- 
1.6.0.rc1.64.g61192



More information about the Spice-devel mailing list