We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477033f commit 827c1ccCopy full SHA for 827c1cc
apps/evmc/extract_vbucket_conf.cc
@@ -45,6 +45,9 @@ void GetVbucketConf::OnHttpReqDone(struct evhttp_request* req, void* arg) {
45
int GetVbucketConf::GetRemoteVbucketConf(const std::string& conf_addr, std::string& context) {
46
evpp::httpc::URLParser url(conf_addr);
47
struct event_base* base = event_base_new();
48
+ if (base == NULL) {
49
+ return -1;
50
+ }
51
struct evhttp_connection* conn = evhttp_connection_base_new(base, nullptr, url.host.c_str(), url.port);
52
HttpReqDoneArg arg;
53
arg.event = base;
0 commit comments