X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fjobq.c;h=a16f6b48fafddbeab40e9f7b9156d020b90b8659;hb=fecc4658bbda4ec4382cf10102d80bce0e1c454b;hp=bff56d1ecde27b8d0824741e2c42d74212cf5e7e;hpb=136516ad03f486471779affa0084cc1fe15dd588;p=bacula%2Fbacula diff --git a/bacula/src/dird/jobq.c b/bacula/src/dird/jobq.c index bff56d1ecd..a16f6b48fa 100755 --- a/bacula/src/dird/jobq.c +++ b/bacula/src/dird/jobq.c @@ -199,9 +199,8 @@ int jobq_add(jobq_t *jq, JCR *jcr) sched_pkt = (wait_pkt *)malloc(sizeof(wait_pkt)); sched_pkt->jcr = jcr; sched_pkt->jq = jq; - if ((stat = pthread_create(&id, &jq->attr, sched_wait, (void *)sched_pkt)) != 0) { - return stat; - } + stat = pthread_create(&id, &jq->attr, sched_wait, (void *)sched_pkt); + return stat; } if ((stat = pthread_mutex_lock(&jq->mutex)) != 0) {