]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/postgresql.c
Big backport from Enterprise
[bacula/bacula] / bacula / src / cats / postgresql.c
index f8fa4a92f87e94f4bfc048adc6dbf86acfa7a89c..dabc4b827bf8c446635956b5f95615f75124c4f4 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula(R) - The Network Backup Solution
 
-   Copyright (C) 2000-2015 Kern Sibbald
+   Copyright (C) 2000-2017 Kern Sibbald
 
    The original author of Bacula is Kern Sibbald, with contributions
    from many others, a complete list can be found in the file AUTHORS.
@@ -58,7 +58,7 @@ static dlist *db_list = NULL;
 
 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; 
 
-BDB_POSTGRESQL::BDB_POSTGRESQL()
+BDB_POSTGRESQL::BDB_POSTGRESQL(): BDB()
 {
    BDB_POSTGRESQL *mdb = this;
 
@@ -445,6 +445,7 @@ void BDB_POSTGRESQL::bdb_start_transaction(JCR *jcr)
    }
    if (!jcr->ar) { 
       jcr->ar = (ATTR_DBR *)malloc(sizeof(ATTR_DBR)); 
+      memset(jcr->ar, 0, sizeof(ATTR_DBR));
    }
 
    /*