Skip to content

Commit 9118477

Browse files
Final fixes
1 parent 981c4f5 commit 9118477

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/jsonrpccxx/batchclient.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace jsonrpccxx {
4646

4747
class BatchResponse {
4848
public:
49-
explicit BatchResponse(json &&response) : response(response) {
49+
explicit BatchResponse(json &&response) : response(response), results(), errors(), nullIds() {
5050
for (auto &[key, value] : response.items()) {
5151
if (value.is_object() && valid_id_not_null(value) && has_key(value, "result")) {
5252
results[value["id"]] = std::stoi(key);
@@ -98,4 +98,4 @@ namespace jsonrpccxx {
9898
}
9999
}
100100
};
101-
}
101+
}

test/integrationtest.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
using namespace jsonrpccxx;
99

1010
struct IntegrationTest {
11-
IntegrationTest() : connector(rpcServer), client(connector, version::v2) {}
11+
IntegrationTest() : rpcServer(), connector(rpcServer), client(connector, version::v2) {}
1212
JsonRpc2Server rpcServer;
1313
InMemoryConnector connector;
1414
JsonRpcClient client;
15-
};
15+
};

0 commit comments

Comments
 (0)