Skip to content
Snippets Groups Projects
Commit 856b9e2c authored by clohr's avatar clohr
Browse files

devType vide au debut...

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/trunk@1934 b32b6428-25c9-4566-ad07-03861ab6144f
parent 48e2da40
Branches
No related tags found
No related merge requests found
......@@ -529,7 +529,7 @@ void checking_schema(const xAAL_businfo_t *bus, const xAAL_devinfo_t *me, db_t *
schema_t *schema;
TAILQ_FOREACH(device, &(db->devices), entries)
if (strncmp(device->devinfo.devType, "schemarepository.", len) == 0)
if ( device->devinfo.devType && (strncmp(device->devinfo.devType, "schemarepository.", len) == 0) )
json_object_array_add(jtargets, json_object_new_string(device->devinfo.addr));
if (json_object_array_length(jtargets) != 0) {
......@@ -550,7 +550,7 @@ void checking_attributes(const xAAL_businfo_t *bus, const xAAL_devinfo_t *me, db
schema_t *schema;
TAILQ_FOREACH(device, &(db->devices), entries)
if (strncmp(device->devinfo.devType, "cache.", len) == 0)
if ( device->devinfo.devType && (strncmp(device->devinfo.devType, "cache.", len) == 0) )
json_object_array_add(jtargets, json_object_new_string(device->devinfo.addr));
TAILQ_FOREACH(device, &(db->devices), entries) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment