[Coverity] Add check for NULL before calling strlcpy.

* Fixes CID11207.
This commit is contained in:
Siarzhuk Zharski
2012-02-02 21:10:42 +01:00
parent d9744a0dfc
commit 1acd796b6b
@@ -549,7 +549,8 @@ Mixer::_CreateMIXControlGroup(multi_mix_control_info* MultiInfo, int32& index,
Controls[index].flags = B_MULTI_MIX_MUX;
Controls[index].parent = groupIndex;
Controls[index].string = S_null;
strlcpy(Controls[index].name, Info.fExName,
if (Info.fExName != NULL)
strlcpy(Controls[index].name, Info.fExName,
sizeof(Controls[index].name));
TRACE("MUX:%#010x\n", Controls[index].id);