X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgrpc.cc;h=0ae80bb898fa8d00ebd63e7714a7797c670f5c84;hb=872f146a794e43a3a4969927d55e22be8f2c8ee1;hp=3b1891fa10485cc46f819a5fe777f26f62c9dae5;hpb=2653da4259ec55e133cb77c46ed0d07829253cfd;p=collectd.git diff --git a/src/grpc.cc b/src/grpc.cc index 3b1891fa..0ae80bb8 100644 --- a/src/grpc.cc +++ b/src/grpc.cc @@ -1,6 +1,7 @@ /** * collectd - src/grpc.cc * Copyright (C) 2015-2016 Sebastian Harl + * Copyright (C) 2016 Florian octo Forster * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -22,6 +23,7 @@ * * Authors: * Sebastian Harl + * Florian octo Forster **/ #include @@ -289,7 +291,7 @@ public: PutValuesRequest req; while (reader->Read(&req)) { - value_list_t vl = VALUE_LIST_INIT; + value_list_t vl = {0}; auto status = unmarshal_value_list(req.value_list(), &vl); if (!status.ok()) return status;