Skip to content
Snippets Groups Projects
Commit 48e2da40 authored by clohr's avatar clohr
Browse files

devType vide

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