network: Move variable declaration under an #if
authorTimothy Gu <timothygu99@gmail.com>
Wed, 27 May 2015 23:39:55 +0000 (16:39 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 May 2015 01:06:05 +0000 (03:06 +0200)
Avoids an unused variable warning.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/network.c

index 2d05031..8cc5aad 100644 (file)
@@ -29,8 +29,8 @@
 
 int ff_tls_init(void)
 {
-    int ret;
 #if CONFIG_TLS_OPENSSL_PROTOCOL
+    int ret;
     if ((ret = ff_openssl_init()) < 0)
         return ret;
 #endif