From 45f5673fab9eb3cf5e971142213a772a9f6c922e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Jun 2010 09:08:21 +0200 Subject: [PATCH] Fix db_get_base_jobid() --- bacula/src/cats/sql_get.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/sql_get.c b/bacula/src/cats/sql_get.c index 7b9044b4ea..c9b8077213 100644 --- a/bacula/src/cats/sql_get.c +++ b/bacula/src/cats/sql_get.c @@ -1257,9 +1257,10 @@ bool db_get_base_jobid(JCR *jcr, B_DB *mdb, JOB_DBR *jr, JobId_t *jobid) db_int64_ctx lctx; char date[MAX_TIME_LENGTH]; bool ret=false; - *jobid = 0; - // char clientid[50], filesetid[50]; + *jobid = 0; + lctx.count = 0; + lctx.value = 0; StartTime = (jr->StartTime)?jr->StartTime:time(NULL); bstrutime(date, sizeof(date), StartTime + 1); -- 2.39.5