[glib-networking/master.pre-c99] gtlsconnection-base.c: Declare variables at top-of-block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/master.pre-c99] gtlsconnection-base.c: Declare variables at top-of-block
- Date: Wed, 26 Aug 2020 08:21:16 +0000 (UTC)
commit 181a27a057e79208a76598e823fa1da7da95d974
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jan 6 18:13:57 2020 +0800
gtlsconnection-base.c: Declare variables at top-of-block
Fixes builds on older compilers
tls/base/gtlsconnection-base.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index 97ac24f..971b9e5 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -2000,9 +2000,10 @@ g_tls_connection_base_read_message (GTlsConnectionBase *tls,
/* Copy data out of the app data buffer first. */
if (priv->app_data_buf && !priv->handshaking)
{
+ guint i = 0;
nread = 0;
- for (guint i = 0; i < num_vectors; i++)
+ for (i = 0; i < num_vectors; i++)
{
gsize count;
GInputVector *vec = &vectors[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]