Skip to content

Commit

Permalink
Fix use of uninitialized jcr member in DCR constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Aug 30, 2014
1 parent 56560ce commit 4d007be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stored/acquire.c
Expand Up @@ -645,14 +645,14 @@ DCR::DCR()
berrno be;

Mmsg(errmsg, _("Unable to init mutex: ERR=%s\n"), be.bstrerror(errstat));
Jmsg0(jcr, M_ERROR_TERM, 0, errmsg.c_str());
Jmsg0(NULL, M_ERROR_TERM, 0, errmsg.c_str());
}

if ((errstat = pthread_mutex_init(&r_mutex, NULL)) != 0) {
berrno be;

Mmsg(errmsg, _("Unable to init r_mutex: ERR=%s\n"), be.bstrerror(errstat));
Jmsg0(jcr, M_ERROR_TERM, 0, errmsg.c_str());
Jmsg0(NULL, M_ERROR_TERM, 0, errmsg.c_str());
}
}

Expand Down

0 comments on commit 4d007be

Please sign in to comment.