mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Set an empty value as a reference value when the path exists but its linker is empty
This commit is contained in:
parent
8d55820ed1
commit
549a296cbf
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ int bbfdm_get_reference_linker(struct dmctx *ctx, char *reference_path, struct d
|
||||||
int res = dmuci_get_option_value_string_varstate("bbfdm_reference_db", "reference_value", hash_str, &uci_val);
|
int res = dmuci_get_option_value_string_varstate("bbfdm_reference_db", "reference_value", hash_str, &uci_val);
|
||||||
|
|
||||||
if (uci_val && uci_val[0] == '#' && uci_val[1] == '\0') {
|
if (uci_val && uci_val[0] == '#' && uci_val[1] == '\0') {
|
||||||
reference_args->value = uci_val;
|
reference_args->value = dmstrdup("");
|
||||||
reference_args->is_valid_path = true;
|
reference_args->is_valid_path = true;
|
||||||
} else {
|
} else {
|
||||||
reference_args->value = uci_val;
|
reference_args->value = uci_val;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue