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

Submitted by Aric Stewart on April 18, 2012, 1:59 p.m.

Details

Message ID 4F8EC8B8.90906@codeweavers.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Aric Stewart April 18, 2012, 1:59 p.m.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
---
 common/ssl_verify.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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);

Comments

On Wed, Apr 18, 2012 at 08:59:20AM -0500, Aric Stewart wrote:
> Signed-off-by: Aric Stewart <aric@codeweavers.com>

ACK. Pushing.

> ---
>  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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel