]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload: Initialize http_context in test_client_create_clients().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 20 Jan 2018 17:48:00 +0000 (18:48 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 13 Mar 2018 09:07:03 +0000 (11:07 +0200)
Fixes complaint from scan-build.

src/lib-http/test-http-payload.c

index 0b0760f7d5ded4f903e55c2f629a279e92395da6..1beccf789796580f0e1c0ded3d55045553e7ea28 100644 (file)
@@ -689,7 +689,7 @@ test_client_progress_timeout(void *context ATTR_UNUSED)
 static void
 test_client_create_clients(const struct http_client_settings *client_set)
 {
-       struct http_client_context *http_context;
+       struct http_client_context *http_context = NULL;
        unsigned int i;
 
        to_client_progress = timeout_add(CLIENT_PROGRESS_TIMEOUT*1000,