diff options
author | David Robillard <d@drobilla.net> | 2019-06-21 21:18:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-21 21:18:43 +0200 |
commit | 1bce600a6f308b3bd836f85eb1cc62d3c93a5f35 (patch) | |
tree | a6b402cee803b8c246603e479c1a34d0d6be72a0 /src | |
parent | 6d0995694ca5a3de916cc9746f4104f066b22718 (diff) | |
download | lilv-1bce600a6f308b3bd836f85eb1cc62d3c93a5f35.tar.gz lilv-1bce600a6f308b3bd836f85eb1cc62d3c93a5f35.tar.bz2 lilv-1bce600a6f308b3bd836f85eb1cc62d3c93a5f35.zip |
Refuse to store state properties with null keys
Diffstat (limited to 'src')
-rw-r--r-- | src/state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 9b44c42..ac1468c 100644 --- a/src/state.c +++ b/src/state.c @@ -193,6 +193,10 @@ store_callback(LV2_State_Handle handle, { LilvState* const state = (LilvState*)handle; + if (!key) { + return LV2_STATE_ERR_UNKNOWN; // TODO: Add status for bad arguments + } + if (find_property((const LilvState*)handle, key)) { return LV2_STATE_ERR_UNKNOWN; // TODO: Add status for duplicate keys } |