Server: initialize struct members

found by Coverity (CIDs 27931 27957 278928)
This commit is contained in:
Christian Beer 2019-05-29 20:48:05 +02:00
parent 008b1deb1e
commit c68d906ac7
2 changed files with 7 additions and 2 deletions

View File

@ -151,9 +151,13 @@ DB_USER_SUBMIT::DB_USER_SUBMIT(DB_CONN* dc) :
DB_STATE_COUNTS::DB_STATE_COUNTS(DB_CONN* dc) :
DB_BASE("state_counts", dc?dc:&boinc_db){}
DB_TRANSITIONER_ITEM_SET::DB_TRANSITIONER_ITEM_SET(DB_CONN* dc) :
DB_BASE_SPECIAL(dc?dc:&boinc_db){}
DB_BASE_SPECIAL(dc?dc:&boinc_db) {
nitems_this_query = 0;
}
DB_VALIDATOR_ITEM_SET::DB_VALIDATOR_ITEM_SET(DB_CONN* dc) :
DB_BASE_SPECIAL(dc?dc:&boinc_db){}
DB_BASE_SPECIAL(dc?dc:&boinc_db) {
nitems_this_query = 0;
}
DB_WORK_ITEM::DB_WORK_ITEM(DB_CONN* dc) :
DB_BASE_SPECIAL(dc?dc:&boinc_db
){

View File

@ -269,6 +269,7 @@ void fail(const char* msg) {
void open_archive(const char* filename_prefix, void*& f){
char path[MAXPATHLEN];
char command[MAXPATHLEN+512];
sprintf(command, "/bin/false");
if (daily_dir) {
time_t time_time = time_int;