Return out of ecrt_slave_config_pdos() when pdo_infos == NULL
authorRichard Hacker <ha@igh-essen.com>
Tue, 24 Jun 2008 10:55:40 +0000
changeset 1054 4c16fe64b403
parent 1053 0cb9604cbaa7
child 1055 2be8918682fa
Return out of ecrt_slave_config_pdos() when pdo_infos == NULL
master/slave_config.c
--- a/master/slave_config.c	Mon Jun 23 12:03:37 2008 +0000
+++ b/master/slave_config.c	Tue Jun 24 10:55:40 2008 +0000
@@ -434,6 +434,9 @@
     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];