]> git.sur5r.net Git - bacula/bacula/commitdiff
Ensure that JOB_DBR is properly initialized before a db_list_job_records()
authorEric Bollengier <eric@baculasystems.com>
Wed, 11 Nov 2015 10:41:18 +0000 (11:41 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:58:44 +0000 (09:58 -0800)
bacula/src/dird/ua_purge.c

index 9fc7690f2af0bef9b8b1c7301c40f1b6797064a7..0bfce7adacd4ab55fdb4441686692fee86a6f8af 100644 (file)
@@ -61,6 +61,8 @@ int purge_cmd(UAContext *ua, const char *cmd)
    CLIENT *client;
    MEDIA_DBR mr;
    JOB_DBR  jr;
+   memset(&jr, 0, sizeof(jr));
+
    static const char *keywords[] = {
       NT_("files"),
       NT_("jobs"),