libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d270741b49d6c380e1e964838ba9f5b58f10553d
parent 650d4685f7e9f8297df706d0c220fbd12e6e84d4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri,  3 May 2019 20:07:15 +0300

MHD_get_connection_values_n(): avoid ambiguous 'else'

Diffstat:
Msrc/microhttpd/connection.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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)