Skip to content
Snippets Groups Projects
Commit cb56fabe authored by Richard Hacker's avatar Richard Hacker
Browse files

Return out of ecrt_slave_config_pdos() when pdo_infos == NULL

parent 64bb6ff4
No related branches found
No related tags found
No related merge requests found
......@@ -434,6 +434,9 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc, unsigned int n_infos,
unsigned int cleared[] = {0, 0};
const ec_pdo_entry_info_t *ei;
if (!pdo_infos)
return 0;
for (i = 0; i < n_infos; i++) {
pi = &pdo_infos[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment