Skip to content

Commit ffeeef0

Browse files
dstoccokostorr
authored andcommitted
Bug fix: check argument instead of an undefined data member
1 parent ca04f3b commit ffeeef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sca.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Sca::Sca(std::string cardId, int linkId)
5656

5757
void Sca::init(const roc::Parameters::CardIdType& cardId, int linkId)
5858
{
59-
if (mLink.linkId >= CRU_NUM_LINKS) {
59+
if (linkId >= CRU_NUM_LINKS) {
6060
BOOST_THROW_EXCEPTION(
6161
ScaException() << ErrorInfo::Message("Maximum link number exceeded"));
6262
}

0 commit comments

Comments
 (0)