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:
parent
da96f8b585
commit
cb4f421ba9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue