Skip to content

Commit

Permalink
lib-http: Add assert to make sure http_client_init_shared(NULL, NULL)…
Browse files Browse the repository at this point in the history
… isn't called

This should make scan-build happy.
  • Loading branch information
sirainen committed Aug 31, 2018
1 parent 23b623a commit 7c6ffed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-http/http-client.c
Expand Up @@ -121,6 +121,7 @@ http_client_init_shared(struct http_client_context *cctx,
http_client_context_ref(cctx);
log_prefix = t_strdup_printf("http-client[%u]: ", id);
} else {
i_assert(set != NULL);
client->cctx = cctx = http_client_context_create(set);
log_prefix = "http-client: ";
}
Expand Down

0 comments on commit 7c6ffed

Please sign in to comment.