1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 07:31:00 +01:00

C API: if store doesn't have a version, return an empty string

This commit is contained in:
José Luis Lafuente 2024-02-22 00:22:54 +01:00 committed by José Luis Lafuente
parent dfdb90dc8e
commit 24c8f6864d
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
3 changed files with 10 additions and 6 deletions

View file

@ -125,7 +125,8 @@ nix_err nix_store_build(
void (*callback)(void * userdata, const char * outname, const char * out));
/**
* @brief get the version of a nix store
* @brief get the version of a nix store.
* If the store doesn't have a version (like the dummy store), returns an empty string.
* @param[out] context Optional, stores error information
* @param[in] store nix store reference
* @param[out] dest The allocated area to write the string to.