X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgrpc.cc;h=0ae80bb898fa8d00ebd63e7714a7797c670f5c84;hb=e4504c3cc5582ab915903e1b4ba010545ffc8354;hp=3b1891fa10485cc46f819a5fe777f26f62c9dae5;hpb=4d6f6e256e27ed45a41bcc199f623e23aca401c9;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;