fix: string comparing in object_detection_sample_ssd_c (#5371)

This commit is contained in:
Kate Generalova 2021-04-25 21:42:04 +03:00 committed by GitHub
parent 594c4882e6
commit 8bb73273f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,7 +360,7 @@ int main(int argc, char** argv) {
printf("%sCustom extension loaded: %s\n", info, custom_ex_library_msg); printf("%sCustom extension loaded: %s\n", info, custom_ex_library_msg);
} }
if (custom_plugin_cfg_msg && (device_name == "GPU" || device_name == "MYRIAD" || device_name == "HDDL")) { if (custom_plugin_cfg_msg && (strcmp(device_name, "GPU") == 0 || strcmp(device_name, "MYRIAD") == 0 || strcmp(device_name, "HDDL") == 0)) {
// Config for device plugin custom extension is loaded from an .xml // Config for device plugin custom extension is loaded from an .xml
// description // description
ie_config_t cfg = {"CONFIG_FILE", custom_plugin_cfg_msg, NULL}; ie_config_t cfg = {"CONFIG_FILE", custom_plugin_cfg_msg, NULL};