1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5040: Fix posible segfault in LogDB::purge_log (#157)

(cherry picked from commit fb0d1bb9066c5587b11a14d0b1e58caa5e7d96e8)
This commit is contained in:
Pavel Czerný 2020-08-19 11:37:46 +02:00 committed by Ruben S. Montero
parent 358d0ec5c5
commit 058ab946f2
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -611,8 +611,8 @@ int LogDB::purge_log()
multiple_cb<std::vector, uint64_t> cb_info;
single_cb<string> cb_min_idx;
std::vector<uint64_t> maxmin_i;
std::vector<uint64_t> maxmin_e;
std::vector<uint64_t> maxmin_i{0, 0};
std::vector<uint64_t> maxmin_e{0, 0};
string min_idx;
int rc = 0;