]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/sqlite.c
Attempt to fix bug #2237
[bacula/bacula] / bacula / src / cats / sqlite.c
index 89f810ed0cb36dca52c7c9c410ba3aba42c4f9a7..9ee817102167d8f8683cf5c25ddbd623593b58bc 100644 (file)
@@ -1,8 +1,7 @@
 /* 
    Bacula(R) - The Network Backup Solution
 
-   Copyright (C) 2000-2015 Kern Sibbald
-   Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2016 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.
@@ -379,6 +378,7 @@ void BDB_SQLITE::bdb_start_transaction(JCR *jcr)
    } 
    if (!jcr->ar) { 
       jcr->ar = (ATTR_DBR *)malloc(sizeof(ATTR_DBR)); 
+      memset(jcr->ar, 0, sizeof(ATTR_DBR));
    } 
  
    if (!mdb->m_allow_transactions) {