From: Kern Sibbald Date: Thu, 16 Jan 2003 15:45:29 +0000 (+0000) Subject: Attempt to fix seg fault X-Git-Tag: Release-1.29~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d450cbd96e431cb2576a1764b7b559e94bf487f;p=bacula%2Fbacula Attempt to fix seg fault git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@298 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 24fec69324..22dcdac944 100755 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -878,10 +878,13 @@ Jmsg(void *vjcr, int type, int level, char *fmt,...) * Tmsg5(000, "jcr=%x msgs=%x type=%d send_msg=%x *msg=%x\n", * jcr, msgs, type, msgs->send_msg, (int)msgs->send_msg[0]); */ - - if ((type != M_ABORT && type != M_ERROR_TERM) && msgs && + /* There is an apparent compiler bug with the following if + * statement, so the set_jcr... is simply a noop to reload + * registers. + */ + set_jcr_job_status(jcr, jcr->JobStatus); + if (msgs && (type != M_ABORT && type != M_ERROR_TERM) && !bit_is_set(type, msgs->send_msg)) { - Dmsg1(200, "No bit set for type %d\n", type); return; /* no destination */ } switch (type) {