Commit dac89e4
committed
fix(libexpr-c): nix_get_external should use check_value_in, not check_value_out
nix_get_external reads from an already-initialized nix_value (set via
nix_init_external). Every other getter in the file (nix_get_bool,
nix_get_int, nix_get_float, nix_get_string, nix_get_path_string) uses
check_value_in, which asserts the value IS initialized. nix_get_external
was the sole getter using check_value_out, which asserts the value is
UNinitialized and throws "nix_value already initialized" for any valid
external value — making the function always fail.1 parent cbbc07c commit dac89e4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
0 commit comments