ZMQ: Fix empty arguments SEGFAULT

This commit is contained in:
Xavier Arteaga 2019-11-25 11:51:48 +01:00 committed by Xavier Arteaga
parent 71c83bd0e0
commit ff77bcb782
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ int rf_zmq_open_multi(char* args, void** h, uint32_t nof_channels)
goto clean_exit;
}
for (int i = 0; i < handler->nof_channels; i++) {
for (int i = 0; i < handler->nof_channels && args != NULL; i++) {
// rxport
{
char config_arg[PARAM_LEN] = "rx_port=";