1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: fix empty search path being an error

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-04-24 17:37:39 +02:00
parent da96f8b585
commit cb4f421ba9

View file

@ -89,6 +89,8 @@ PCIeCardFactory::make(json_t *json_card, std::string card_name,
logger->debug("searching for FPGA IP cors config at {}",
json_ips_path.string());
json_ips = json_load_file(json_ips_path.c_str(), 0, nullptr);
} else {
json_ips = json_load_file(json_string_value(json_ips), 0, nullptr);
}
if (json_ips == nullptr) {
json_ips = json_load_file(json_string_value(json_ips), 0, nullptr);