mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
nix_err_code: do not fail
This commit is contained in:
parent
b0741f7128
commit
f41a7e326b
2 changed files with 4 additions and 7 deletions
|
@ -127,10 +127,7 @@ nix_err nix_err_info_msg(nix_c_context *context,
|
|||
n);
|
||||
}
|
||||
|
||||
nix_err nix_err_code(nix_c_context *context,
|
||||
const nix_c_context *read_context) {
|
||||
if (context)
|
||||
context->last_err_code = NIX_OK;
|
||||
nix_err nix_err_code(const nix_c_context *read_context) {
|
||||
return read_context->last_err_code;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue