Skip to content

Commit 6e535a0

Browse files
authored
Merge pull request #77 from BlueAndi/bugfix/logging
Bugfix/logging
2 parents 484b6f5 + 9ad7384 commit 6e535a0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/Utilities/src/Logging.cpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,16 @@ bool Logging::selectSink(const String& name)
114114

115115
while ((MAX_SINKS > index) && (false == status))
116116
{
117-
if (m_sinks[index]->getName() == name)
117+
if (nullptr != m_sinks[index])
118118
{
119-
m_selectedSink = m_sinks[index];
120-
status = true;
121-
}
122-
else
123-
{
124-
++index;
119+
if (m_sinks[index]->getName() == name)
120+
{
121+
m_selectedSink = m_sinks[index];
122+
status = true;
123+
}
125124
}
125+
126+
++index;
126127
}
127128

128129
return status;

0 commit comments

Comments
 (0)