]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/butil.c
kes Fix code to check for two resources of same name. It forgot
[bacula/bacula] / bacula / src / stored / butil.c
index 9405aab2d6a8578f368f7a2276be743abe2f2e1b..ab5f957aa16f56c288dd700b94720048bf69a7f4 100644 (file)
@@ -89,7 +89,8 @@ JCR *setup_jcr(const char *name, char *dev_name, BSR *bsr,
    jcr->bsr = bsr;
    jcr->VolSessionId = 1;
    jcr->VolSessionTime = (uint32_t)time(NULL);
-   jcr->NumVolumes = 0;
+   jcr->NumReadVolumes = 0;
+   jcr->NumWriteVolumes = 0;
    jcr->JobId = 0;
    jcr->JobType = JT_CONSOLE;
    jcr->JobLevel = L_FULL;