From: Eric Bollengier Date: Wed, 11 Nov 2015 10:41:18 +0000 (+0100) Subject: Ensure that JOB_DBR is properly initialized before a db_list_job_records() X-Git-Tag: Release-7.4.0~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5235536ec3591a485e17ebbbbce0e0c851d8b452;p=bacula%2Fbacula Ensure that JOB_DBR is properly initialized before a db_list_job_records() --- diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index 9fc7690f2a..0bfce7adac 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -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"),