Skip to content
Snippets Groups Projects
Commit 1b990f10 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'feat-4515-9' into 'master'

Useless check off

See merge request !271
parents 93a8ace5 6dd2de14
No related branches found
No related tags found
1 merge request!271Useless check off
Pipeline #6802 passed with stage
in 13 seconds
......@@ -673,12 +673,6 @@ dap_global_db_obj_t* dap_chain_global_db_gr_load(const char *a_group, size_t *a_
}
dap_global_db_obj_t *l_data = DAP_NEW_Z_SIZE(dap_global_db_obj_t, (count + 1) * sizeof(dap_global_db_obj_t)); // last item in mass must be zero
for(size_t i = 0; i < count; i++) {
if (l_store_obj[i].value_len > 1024*1024) {
char l_temp[64] = { '\0' };
log_it(L_ERROR, "Trash datum in gdb, key: %s, size: %d, created: %s", l_store_obj[i].key, l_store_obj[i].value_len, dap_ctime_r(&(l_store_obj[i].timestamp), l_temp));
--count;
continue;
}
l_data[i].key = dap_strdup(l_store_obj[i].key);
l_data[i].value_len = l_store_obj[i].value_len;
l_data[i].value = DAP_NEW_Z_SIZE(uint8_t, l_store_obj[i].value_len + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment