gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: MHD_get_connection_values_n(): avoid


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: MHD_get_connection_values_n(): avoid ambiguous 'else'
Date: Fri, 03 May 2019 19:08:54 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit d270741b49d6c380e1e964838ba9f5b58f10553d
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Fri May 3 20:07:15 2019 +0300

    MHD_get_connection_values_n(): avoid ambiguous 'else'
---
 src/microhttpd/connection.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9e136b9d..da3219e1 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -741,8 +741,10 @@ MHD_get_connection_values_n (struct MHD_Connection 
*connection,
 
   if (NULL == iterator)
     for (pos = connection->headers_received; NULL != pos; pos = pos->next)
-      if (kind == pos->kind)
-        ret++;
+      {
+        if (kind == pos->kind)
+          ret++;
+      }
   else
     for (pos = connection->headers_received; NULL != pos; pos = pos->next)
       if (kind == pos->kind)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]