You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2019/12/16 21:23:15 UTC

[celix] branch develop updated: Solve compiler warning: uninitialized variable

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4a322f6  Solve compiler warning: uninitialized variable
     new 0050527  Merge pull request #135 from gerritbinnenmars/develop
4a322f6 is described below

commit 4a322f61e557a75e49d5d64c7ddc17feed059c46
Author: root <ro...@localhost.localdomain>
AuthorDate: Mon Dec 16 22:03:46 2019 +0100

    Solve compiler warning: uninitialized variable
---
 bundles/remote_services/civetweb/src/civetweb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bundles/remote_services/civetweb/src/civetweb.c b/bundles/remote_services/civetweb/src/civetweb.c
index a6093b7..c155d38 100644
--- a/bundles/remote_services/civetweb/src/civetweb.c
+++ b/bundles/remote_services/civetweb/src/civetweb.c
@@ -4208,7 +4208,7 @@ void mg_send_file(struct mg_connection *conn, const char *path)
 static void parse_http_headers(char **buf, struct mg_request_info *ri)
 {
     int i;
-
+    ri->num_headers = 0;
     for (i = 0; i < (int) ARRAY_SIZE(ri->http_headers); i++) {
         ri->http_headers[i].name = skip_quoted(buf, ":", " ", 0);
         ri->http_headers[i].value = skip(buf, "\r\n");