]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix db_get_base_jobid()
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 17 Jun 2010 07:08:21 +0000 (09:08 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:55 +0000 (16:53 +0200)
bacula/src/cats/sql_get.c

index 7b9044b4eaa4ce45a3bdf38bd2e05fd03d612416..c9b8077213babb5ccb1b5897aabf9cf73dc7bccb 100644 (file)
@@ -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);