From: Thorsten Engel Date: Tue, 21 Mar 2006 10:30:29 +0000 (+0000) Subject: small bugfix (init mutex before using it in inc_use_count) ;-) X-Git-Tag: Release-2.0.0~994 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bbc315201329a67ded0866c0a87add960ab084cd;p=bacula%2Fbacula small bugfix (init mutex before using it in inc_use_count) ;-) git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2843 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/jcr.c b/bacula/src/lib/jcr.c index 0c6f6af616..8c2c241ba9 100755 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -229,8 +229,8 @@ JCR *new_jcr(int size, JCR_free_HANDLER *daemon_free_jcr) jcr->job_end_push.init(1, false); jcr->sched_time = time(NULL); jcr->daemon_free_jcr = daemon_free_jcr; /* plug daemon free routine */ - jcr->inc_use_count(); jcr->init_mutex(); + jcr->inc_use_count(); jcr->JobStatus = JS_Created; /* ready to run */ jcr->VolumeName = get_pool_memory(PM_FNAME); jcr->VolumeName[0] = 0;