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

[*] Added check for key is null or not

parent 4024a0a0
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ time_t dap_db_log_get_last_timestamp(void)
}
//printf("l_obj_cur->key=%s\n", l_obj_cur->key);
}
time_t l_ret_time = strtoll(last_key, NULL, 10);
time_t l_ret_time = last_key? strtoll(last_key, NULL, 10): 0;
dap_chain_global_db_objs_delete(l_objs);
return l_ret_time;
}
......
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